Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://674299]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2017-01-24 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (205 votes). Check out past polls.