Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Re: split delimiters

by Daddio (Chaplain)
on Mar 27, 2001 at 04:14 UTC ( #67394=note: print w/ replies, xml ) Need Help??

in reply to Re: split delimiters
in thread split delimiters

Or, just in case both of these delimiters should be used for one split...

split /[\[\(]/, 'some(next[really(really(odd[string';

Comment on Re: Re: split delimiters
Download Code
Re: Re: Re: split delimiters
by busunsl (Vicar) on Mar 27, 2001 at 10:51 UTC
    Well, in that case you don't have to escape them, because they are in sqare brackets:
    split /[([]/, 'some(wierd[string';

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-03-27 08:31 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (600 votes), past polls