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:
01224669
Vues:
11
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)
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform