Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: HELP! I am in regex-hell

by Anonymous Monk
on Jul 15, 2020 at 20:35 UTC ( [id://11119374]=note: print w/replies, xml ) Need Help??


in reply to Re: HELP! I am in regex-hell
in thread HELP! I am in regex-hell

Eh Rolf -- thanks! I messed with the following line:

($page , $section) = ( $line =~ /^((?:\w|:|-)+)(\(.*?\))?/)

This did what I wanted. I needed to keep "\(.*?\)" because that block is used elsewhere in the code. I found it amazing that the first chunk was so simple. I was over-complicating the matter...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found