in reply to Re^5: Matching a string in a parenthesized block (regex help)
in thread Matching a string in a parenthesized block (regex help)

Thanks I think I got the right regex now, this seems to work

m/(ASDF_$arg \{)([^}]*?)magic(.*?)(\})/s

That is exactly what I wanted.

Replies are listed 'Best First'.
Re^7: Matching a string in a parenthesized block (regex help)
by LanX (Saint) on Mar 06, 2021 at 15:21 UTC