Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching for ... using regular expressions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01357999
Message ID:
01358051
Views:
16
>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*''
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform