Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching for ... using regular expressions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01357999
Message ID:
01358062
Vues:
14
>>Hi all,
>>
>>I'm not up on RegExpressions, and want to do a search project wide looking for...
>>
>>any statement that has an IF statement with a double single-quote like...
>>
>>IF lcSomeVar = ''
>>
>>of course, it may be a space or a tab after the IF, and may have a space or tabs after the = sign...
>>
>
>I don't know how bullet proof this is (since it will find things on the same lines, things embedded in quotes, etc.) but it may work well enough for whatever you're doing:
>
>IF\s*\w+\s*=\s*''

I'd rather use
\bIF\b.*''
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform