Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking string for predefined format
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00403485
Message ID:
00405295
Vues:
24
>>>PMFJI,
>>>
>>>Use [A-Z/s], or IOW:
oRegExp.Pattern = '\d{6}[A-Z\s]-[A-Z\s]\d{6}[A-Z\s]-[A-Z\s]\d{6}[A-Z\s]{2}-[A-Z\s]{2}\d{6}[A-Z\s]'
>>
>>Actualy, [A-Z\s] allows too much; tabs, vertical tabs, newlines and spaces also fit. [A-Z ] is fine.
>
>Another note...this is why you'd doing this subject, not me.:-)

I figure you can leverage the exmples from last night into an article - an in case you haven't noticed, use of the RegExp object well requires that you understand what you're trying to template and parse; just wait 'til we peek a bit at the really neat stuff the little man is doing just behind the curtain!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform