in reply to Re: UNO DOS
in thread UNO DOS, HTML

Good call on the .* There is a node around here called Death to Dot Star! which explores this further. But your regex still needs work. The bracket elements are not a group, they are individual. meaning that it would catch any html item, not just -- >, because it matches the > alone. Ok?
How about:
$html =~ s/<!--%(?!%-->)DOS(?!%-->)%-->/GONE/s;
I'm not sure about that regex, I've never used a zero-width negative look-ahead assertion, but I think that's the right direction.

Replies are listed 'Best First'.
RE: RE: Re: UNO DOS
by jreades (Friar) on Sep 13, 2000 at 17:45 UTC

    I've been sweating buckets about this one ever since I left the office... <visions of minus 30XP dancing in my head > which is, of course, just the time to realize that you screwed up the regexp. :^P