Rust-style hashtag strings #1036
Answered
by
dburgener
lylythechosenone
asked this question in
Q&A
-
Is there a way to parse |
Beta Was this translation helpful? Give feedback.
Answered by
dburgener
Jan 28, 2025
Replies: 1 comment 10 replies
-
What's wrong with using a backreference? Untested, but something like: |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's probably some other subtlety I'm missing, but does just making the inner
.*
non-greedy with.*?
fix it?r(#+)\".*?\"(\1)
gives the right answer for me to your regex101 image.