Karen, just extending what Ed mentioned:
If you look in the xsource folder for VFP8, there is the source code for the code references tool (FOXREF) which uses regular expressions. Could be some easy to apply code, ready to use.
>> and you need the capabilities of a regular expression parser, you might want to look at the WSH's VBScript.RegExp COM component.
- Craig
"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson