Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
However, what I want to do is invert that, so that it replaces & symbols NOT in an html entity with the word REPLACED:s/&.{2,10}?;/REPLACED/g;
returns an errors/(?<!.{2,10}?;)&/REPLACED/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't figure out how to invert this regex
by merlyn (Sage) on Nov 25, 2005 at 14:45 UTC | |
by Anonymous Monk on Nov 25, 2005 at 15:05 UTC | |
by Anonymous Monk on Nov 25, 2005 at 15:03 UTC | |
|
Re: Can't figure out how to invert this regex
by anniyan (Monk) on Nov 25, 2005 at 14:41 UTC | |
by sauoq (Abbot) on Nov 25, 2005 at 22:42 UTC | |
by Anonymous Monk on Nov 25, 2005 at 14:51 UTC |