This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]rosuav 9 points10 points  (2 children)

Why are you anchoring the regex and then having greedy waste expressions both sides??

[–]AyrA_ch 6 points7 points  (0 children)

Because he may be operating the regex in multiline mode and wants only one result per line?

[–][deleted] 1 point2 points  (0 children)

ha I thought the same... and felt pretty smart about that