Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another RegEx expression
Message
De
11/03/2014 17:05:12
 
 
À
11/03/2014 16:56:17
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01596156
Message ID:
01596170
Vues:
39
>>No. ([A-Za-z0-9]{1,20})-([A-Za-z0-9]{1,20}) matches between 1 and 20 alphanumeric characters followed by a single hyphen followed by an additional 1-20 alphanumeric characters. [A-Za-z0-9]{1,20} will match both the characters before and after the hyphen of the first expression as separate matches, but not the whole first expression. The second expression will also match where the hyphen is missing or there is only one set of 1-20 alphanumeric characters.
>
>This is the part I cannot understand. We have a maximum of 20 characters. So, I do not understand why I received this mask if no more than 20 characters can be part of the field.

What are you trying to do with the expression? Based off of the original expression, I'm going to guess it is validation to ensure the entered text is alphanumeric with a single hyphen inserted somewhere.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform