[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Gender differentiation



On 2 Jul 99, at 3:01, Steve Willer wrote:

> I've been trying to come up with a way to match "men" in any string, but
> not get a false match from "women".
> 
> I would very much like to use something like:
> 
>   /(^|[^o])men/i
> 
> ...but that doesn't work.

I guess, given the other responses, that I get the dunce cap for the day. 
Maybe you need to explain a bit better what it is you are trying to do, 
because it looked to me like that RE does exactly what you said.  I tried 
it with:

Thiss is a men in the middle     <
this is a snowmen                <
this is a women
men at the beginning             <
women at the beginning

and your RE picked out just the three indicated, which seemed to me to be 
exactly what you wanted.  What would be an example of a string you wanted 
matched that that RE missed, or conversely something you wanted skipped 
that it matches?

  /Bernie\
-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:bernie@fantasyfarm.com     Pearisburg, VA
    -->  Too many people, too few sheep  <--          

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org