Hi Dave,

<@REGEX EXPR=" zzz |^zzz | zzz$" STR="zzz quick zzzbrown zzz jumped over the
lazzzy zzz dog zzz" TYPE=E POSITION=ALL>

will return all instances off zzz but not those contained within other words
(not the zzz in zzzbrown or lazzzy do not get returned)

The expression translates to a space, zzz and a space OR start of line, zzz
and a space OR space, zzz and end of line.
ie.
Stand alone zzz OR zzz at start of line OR zzz at end of line.


Fergal

----- Original Message ----- 
From: "Dave Machin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 03, 2004 9:50 AM
Subject: Witango-Talk: Regex Word Boundary Syntax


> I need to do a regex to find a word in a sentance and I need to make sure
I only match where the word is a stand-alone word and not part of a larger
word.  I though regex word boundary syntax was \b but it doesn't seem to
work - does anyone know what the syntax is...?
>
> Dave Machin
>
>
> E-Mail. [EMAIL PROTECTED]
> Tel.  805.614.0123 x 30
> Address: 3201 Airpark Drive, Suite 104
> Santa Maria, CA 93455________________________________________________TO
UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to