in reply to Handling escapes while splitting lines
Of course you then need to remove the escape characters from the resulting strings, but I left that as an excersise for the reader.my $string = 'a\:b:c'; my ($key, $val) = split /(?<!\\):/, $string, 2; print "$key, $val\n";
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Handling escapes while splitting lines
by Eimi Metamorphoumai (Deacon) on Jan 19, 2005 at 02:05 UTC | |
by Limbic~Region (Chancellor) on Jan 19, 2005 at 13:25 UTC |