Regular expression with lookbehinds question

2004-02-26 Thread Boris Shor
Hello everyone, I'm trying to implement the following regular expression with a lookbehind: $e1 = ','; $aye =~ s/(?http://learn.perl.org/>

Re: Regular expression with lookbehinds question

2004-02-26 Thread Jeff 'japhy' Pinyan
On Feb 26, Boris Shor said: >$e1 = ','; >$aye =~ s/(? >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 ',' a

Re: Regular expression with lookbehinds question

2004-02-26 Thread James Edward Gray II
On Feb 26, 2004, at 3:20 PM, Jeff 'japhy' Pinyan wrote: On Feb 26, Boris Shor said: $e1 = ','; $aye =~ s/(? 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 look

Re: Regular expression with lookbehinds question

2004-02-26 Thread Jeff 'japhy' Pinyan
On Feb 26, James Edward Gray II said: >On Feb 26, 2004, at 3:20 PM, Jeff 'japhy' Pinyan wrote: > >> s/(?:(? >??? 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 changes all sp