All,

lets say i want to test if a string contains "pig" but not "dog" and/or not 
"cat"

i tried something like this:

 =~ m/[^dog]|[^cat]|pig/ig

what is the best way of going about this, using one regex?

your help is very much appreciated, 
thanks.

-Jeremy
                                          
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to