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

Re: [MacPerl] Regular Expression...



At 2:15 PM -0400 8/1/97, Matt Sansbury wrote:
>I have created a search engine and am trying to search for multiple
>words that are next to each other in a string. For example, I would
>like a search for "red blue" to match the words red and blue seperated
>by one or more spaces, but not "red green blue." Right now I can only
>get the latter to happen.
>
>Any suggestions on how to write the regular expression?

/red\s+blue/

Cheers, Noah

--
Noah Iliinsky                   noahi@quando.com
Webmaster                      (503) 225-1988 vox
Quando, Inc.                   (503) 225-1987 fax




***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch