Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^6: Matching a string in a parenthesized block (regex help)

by maxamillionk (Acolyte)
on Mar 06, 2021 at 14:28 UTC ( [id://11129192]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11129192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found