Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regular expressions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01224420
Message ID:
01224750
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform