donno20 has asked for the wisdom of the Perl Monks concerning the following question:
I have no idea what happen, please advise. Thanks ^_^my $str = "ABC\"123\"XYZ"; my @p = split /(?<!\")(?=\".*\")|(?<=\".*\")(?!\")/, $str; foreach my $part (@p) { print "part = ($part)\n"; } __error__ Variable length lookbehind not implemented before HERE mark in regex m +/(?<!")(?=".*")|(?<=".*")(?!") << HERE /
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Look Behind not work, please help
by jmcnamara (Monsignor) on Apr 30, 2003 at 08:34 UTC | |
by halley (Prior) on Apr 30, 2003 at 14:59 UTC | |
by jmcnamara (Monsignor) on Apr 30, 2003 at 15:32 UTC | |
|
Re: Look Behind not work, please help
by Anonymous Monk on Apr 30, 2003 at 15:18 UTC | |
|
Re: Look Behind not work, please help
by nite_man (Deacon) on Apr 30, 2003 at 09:02 UTC | |
by nite_man (Deacon) on Apr 30, 2003 at 09:09 UTC |