> I understand that by using: > > $s=~s/<[^>]*(?!.*?>)// > > the negative character class ( [^>]* ) seems redundant... > > But, strange, If I remove it (then we go to the one I wrote > on my first > message): > > $s=~s/<(?!.*?>)// > > it only removes the last orphan "<" character without its content.
Oh, right :) Sorry, my mistake there. I really don't think you need to use (?!) if what you're trying to do is replace what you're matching. When you do that, your look-ahead assertion ends up actually matching nothing, which is why I asked if you understand what (?!) does... (perldoc perlre) Cheers, -dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]