Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Splitting 2 different patterns

by karlgoethebier (Abbot)
on Mar 17, 2015 at 13:08 UTC ( [id://1120326]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Splitting 2 different patterns
in thread Splitting 2 different patterns

"...will also match 'xf-3/2/a' or even '@-&-*&^-@#$/_)(/&^/%-$#?!'"

Sure, it will. But i have a strong faith in the good in people.

But for peace in the monastry i eat humble pie - here the revised version (still 3 chars less to type):

my @outputlist = $myint=~m|(\w+)-(\d+)/(\d+)/(\d+)|;

Edit: Minor improvement of formatting.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-24 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found