Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
should be broken up into "this", "is\,a", "string"my $str = 'this,is\,a,string';
which works, except, that it uses the character directly before the comma as part of the split. The above RE gives me the following:my @splits = split(/[^\\],/,$str);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RE Dropping last Character
by Anonymous Monk on Jun 11, 2003 at 18:44 UTC | |
by allolex (Curate) on Jun 11, 2003 at 19:38 UTC | |
|
Re: RE Dropping last Character
by cciulla (Friar) on Jun 11, 2003 at 18:55 UTC |