Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@Pat-Lafon
Comment options

@Pat-Lafon
Comment options

@Pat-Lafon
Comment options

@dburgener
Comment options

Answer selected by lylythechosenone
@lylythechosenone
Comment options

@yannham
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants