|Keep It Simple, Stupid|
Problem with negative lookahead at end of stringby olivierp (Hermit)
|on Jun 21, 2004 at 15:00 UTC||Need Help??|
olivierp has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks ! I'm having trouble building a regex that would match as follows:
string starts with chars, contains this, but does not contain that and does not end with whatever A couple of samples:
If I include the whatever part, as here
, sample 2 still matches, whereas this:
excludes sample 2 but is horrible...
Am I missing something with the negative lookahead, or is it not possible to do such a thing ?
Edited by demerphq: Changed </br> to <br />