> # Thru process of elimination, we can see - > > while (<DATA>) { > #print $_ if /men/io; # This only matches 'embedded' men/women... > #print $_ if /(^wo)men/io; # This only matches women... > #print $_ if /[^wo]men/io; # This matches nothing... > #print $_ if /men\b/io; # Same as first test... > print $_ if /\bmen\b/io; # This only matches embedded men... > } > > __DATA__ > Some women walking. > Some men walking. > Woman is singular. > Man is singular. > The manadin orange was rotten. > There are men-working here. > Dancing women prove sexist, news at 11. > > HTH, > -Sneex- :] > FCCJ Data Security Group > ______________________________________________________________________ > Bill Jones Data Security Specialist http://www.fccj.org/cgi/mail?dss I thought we also wanted to match 'snowmen' while leaving 'snowwomen' alone. If there is a single regex to do that, that would be _too_ much fun :) ==== Want to unsubscribe from Fun With Perl? ==== Well, if you insist... Send mail with body "unsubscribe" to ==== fwp-request@technofile.org