Hello everyone,
I'm trying to implement the following regular expression with a lookbehind:
$e1 = ',';
$aye =~ s/(?!($e1))\s/\n/g;
So this expression replaces spaces with newlines except when they are
immediately preceded by a comma. But when I change
$e1 = ',|R\.'
(English: comma or R.), I
On Feb 26, Boris Shor said:
$e1 = ',';
$aye =~ s/(?!($e1))\s/\n/g;
So this expression replaces spaces with newlines except when they are
immediately preceded by a comma. But when I change
$e1 = ',|R\.'
(English: comma or R.), I get Variable length lookbehind not implemented
in regex
Because
On Feb 26, 2004, at 3:20 PM, Jeff 'japhy' Pinyan wrote:
On Feb 26, Boris Shor said:
$e1 = ',';
$aye =~ s/(?!($e1))\s/\n/g;
So this expression replaces spaces with newlines except when they are
immediately preceded by a comma. But when I change
$e1 = ',|R\.'
(English: comma or R.), I get
On Feb 26, James Edward Gray II said:
On Feb 26, 2004, at 3:20 PM, Jeff 'japhy' Pinyan wrote:
s/(?:(?!,)|(?!R\.))\s/\n/g;
??? I don't think that's gonna work. Let me check... No, doesn't
seem to. There is always NOT going to be a proceeding comma OR NOT
going to be a proceeding R., so it