Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regular expressions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01224420
Message ID:
01224750
Views:
19
My bad, this was for phone number. It still isn't working on this pc which is controlled by city govt.

John


>No, the pattern you're using has invalid regular expression - '{4)'
>
>lcExpression ="(\b[0-9]{3}-[0-9]{4}\b)"
>
>>When I run your code, I get an error - unknown com status. Do you think my pc has vbscript disabled?
>>


>>
>>LPARAMETERS tcnarr
>>* ssn pattern
>>lcExpression ="(\b[0-9]{3}-[0-9]{4)\b)"
>>loRegExp = CreateObject("VBScript.RegExp")
>>loRegExp.IgnoreCase = .T.
>>loRegExp.Pattern = LCexpression
>>RETURN loRegExp.Test(tcnarr)
>>
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform