If you really just want everything that doesn't match, do it like this: if($string !~ /pattern/){ do something... }
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 5:52 PM To: beginners@perl.org Subject: using 'negative look-ahead' assertions <snip> I'd like to know, in general, how to get everything that doesn't match a given pattern. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>