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

Re: regexp with repetition of non-capturing group

by Old_Gray_Bear (Bishop)
on Mar 16, 2016 at 15:51 UTC ( #1157953=note: print w/replies, xml ) Need Help??


in reply to regexp with repetition of non-capturing group

You said:
I got a string that I want to analyse, preferably with a regexp.
Insert obligatory line about when you only have a hammer....

This is just what split was made for. Start with the seventh element of the array returned by split and proceed until you reach the end of the array. No need to confuse the issue with a fancy and fragile Regex.....

----
I Go Back to Sleep, Now.

OGB

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2021-09-19 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?