http://www.perlmonks.org?node_id=67394


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';

Replies are listed 'Best First'.
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';