NYCPHP Meetup

NYPHP.org

[nycphp-talk] Regular Expression Assistance in MySQL

Adam Maccabee Trachtenberg adam at trachtenberg.com
Mon Jul 18 19:39:29 EDT 2005


On Mon, 18 Jul 2005, Peter Sawczynec wrote:

> Using the multi-word string below as an example:
> The West and a Western South-westerly Revolt
>
> What is the reg exp that would match only the freestanding West and not
> match the West in Western or South-westerly.

"West ", but that won't watch "West." or "West," or similar
matches. You need to really think about what you're trying to hit.

-adam

-- 
adam at trachtenberg.com | http://www.trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!



More information about the talk mailing list