Same thing but use the !~ operator instead of =~. using /\<(br|b|\/b|a\s.*?|\/a|p|\/p)\>/;
is the same as $_ =~ /\<(br|b|\/b|a\s.*?|\/a|p|\/p)\>/; To get a true answer only when the string do not match your regex, you need to do: $_ !~ /\<(br|b|\/b|a\s.*?|\/a|p|\/p)\>/; Hope this helps. Best At 21:27 2001-12-27, Papo Napolitano wrote: >Hi all, > >I have the regexp > >/\<(br|b|\/b|a\s.*?|\/a|p|\/p)\>/ > >which works as expected, matching > ><br> ><b> ></b> ><a *> ></a> ><p> ></p> > >Now, how do I negate it? >I mean, what would be the regexp to match >every tag BUT those listed above? >I'm really lost... > >TIA =) > > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------- Éric Beaudoin <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]