Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AT() but whole word only
Message
De
06/07/2008 12:25:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01328188
Message ID:
01329248
Vues:
12
>>>>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'+' '
>>>
>>thit won't find king. or King at the beginning of a line
>>regex works perfectly.
>>
>>
>>Peter
>
>It will find it, look closer at this solution.

No, it won't
(1) it pads with spaces
(2) it does not use upper() nor lower()
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform