Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AT() but whole word only
Message
From
02/07/2008 13:45:29
 
 
To
02/07/2008 13:23:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01328188
Message ID:
01328320
Views:
10
>>>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
>>
>>
>>? ' '+'king'+' ' $ ' '+'king and I'+' '
>>? ' '+'king'+' ' $ ' '+'you are the king'+' '
>>? ' '+'king'+' ' $ ' '+'kingsolomon and I'+' '
>>
>
>Fabio,
>Wouldn't that require all combinations of characters that could be used at word boundaries? I think using regex is better.
>Cetin

Hi Cetin,

To use regex is more complex and slow that to use native VFP functions,
BUT !
if the task is complex and require a complex VFP program,
then REGEX can become more simple and fast ...

I have one rule only:
more complex -> more instable ...

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform