>is there a way to look for a word in a memo field text but only find whole words.
>eg: looking for KING should finf Martin Luther King but not lurking
>even if KING is at the beginning of a line or sentence or at the end therof.
>
>maybe REGEX could work, but how
>
>
>Peter
local obj
obj = createobject('VBScript.RegExp')
obj.Global = FALSE
obj.IgnoreCase = TRUE
obj.Pattern = '\bking\b'
?obj.Test('king and I')
?obj.Test('kingsolomon and I')
return
see also:
http://msdn.microsoft.com/en-us/library/ms974570.aspx
Gregory