Just another Perl shrine | |
PerlMonks |
Re: Another puzzled RegEx Problem.by ikegami (Patriarch) |
on Sep 12, 2007 at 13:29 UTC ( [id://638546]=note: print w/replies, xml ) | Need Help?? |
Like the error message says, a limitation of (?<=re) and (?<!re) is that re must only match expressions of a known, fixed length. That means you can use ?, *, +, etc in re. Basically, the regexp engine needs to know how many characters to look back. Some alternatives:
Update: Added solutions.
In Section
Seekers of Perl Wisdom
|
|