Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Pattern Match n00b

by jeroenes (Priest)
on Mar 14, 2008 at 21:27 UTC ( #674299=note: print w/ replies, xml ) Need Help??


in reply to Pattern Match n00b

You could go splitting instead. Nested splits on ; and : could work. Or you could do it all in one statement with SuperSplit:

$array=supersplit(':',';',$mystring);

provided that the (semi)colons are true delimiters.

Cheers,
Jeroen

Couldn't resist the temptation after all those years ;-)


Comment on Re: Pattern Match n00b
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-10-26 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls