Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regular expression
Message
De
09/11/2007 02:02:59
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
08/11/2007 22:46:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01267839
Message ID:
01267850
Vues:
12
>Hi,
>I am using RegExp fll by Craig Boyd to validate strong password. Currently, I am using "^[a-zA-Z0-9]+$" to ensure password contains alphanumeric.
>
>How would the reg expression look like if I want to allow leading/trailing spaces as well?
>
>Thank you

Try:
loRegExp.PATTERN = '^[ \t]*\w+[ \t]*$'
note: \w will include '_' in the pattern what is widespread used within alphanumeric. \t will be tab, if you don't need
loRegExp.PATTERN = '^ *\w+ *$'
will do

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform