Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by Anonymous Monk
on Jul 15, 2020 at 20:35 UTC ( #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
Node Status?
node history
Node Type: note [id://11119374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2020-09-25 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (137 votes). Check out past polls.

    Notices?