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

Re: regexp with repetition of non-capturing group

by Old_Gray_Bear (Bishop)
on Mar 16, 2016 at 15:51 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-03-28 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found