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

Re: [MacPerl] Regular Expression...



Matt_Sansbury@firstclass.it.rit.edu (Matt Sansbury) writes:
}I apologize if this question is a newbie one, but I can't seem to find
}the answer...
}
}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?

m/red\s+blue/

}
}Thanks,
}
}Matt Sansbury

---
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693, Greenbelt, MD 20771
schinder@pjstoaster.pg.md.us



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