From: Jeff Cohen Date: 2006-02-04T07:07:33+09:00 Subject: Re: Regexp question for doing "and" searches Andrew Johnson wrote: > > You can use look-aheads to build a re that looks like: > > /^(?=.*\bone\b)(?=.*\btwo\b)(?=.*\bthree\b)/ > > ensuring a match only if all look-ahead assertions pass. > Awesome! I'll give it a try. Thanks a lot. Jeff -- Posted via http://www.ruby-forum.com/.