Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Split at multiple delimiters and get the delimiter

by eff_i_g (Curate)
on Mar 01, 2011 at 21:32 UTC ( #890833=note: print w/replies, xml ) Need Help??


in reply to Split at multiple delimiters and get the delimiter

Your question has been answered; however, I suggest using a character class rather than alternating single characters: split /([:%;])/.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890833]
help
Chatterbox?
[LanX]: Discipulus: lower monks are made belive it's only a game ... but once you gain access to the vatican ...
choroba will se in a minute...
[choroba]: *see
[LanX]: you will Theodi-see!

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-09-26 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (294 votes). Check out past polls.

    Notices?