From: Joel VanderWerf Date: 2008-05-09T09:59:17+09:00 Subject: Re: Doing an AND in regexp char class David A. Black wrote: >> irb(main):013:0> /(?=.*h)(?=.*o)/ === "h o" >> => true > > That depends on the order, though. Yes, it's buggy. Should use //m: irb(main):003:0> /(?=.*h)(?=.*o)/ === "o \nh" => false irb(main):004:0> /(?=.*h)(?=.*o)/m === "o \nh" => true Does that fix the order problem you were thinking of? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407