Microsoft
Software
Hardware
Network
Question : Need to allow a hyphens ("-") for user names in text field
I have this for a Regular Expression for a user name text field: [0-9a-zA-Z]{6,20}
However, found out that users wanted to add a hyphen or "-" to user names. How can I adjust my regular expression [0-9a-zA-Z]{6,20} to allow the hyphens or "-"?
Answer : Need to allow a hyphens ("-") for user names in text field
You would need to escape the hyphen with a backslash within the character set brackets:
[0-9a-zA-Z\-]{6,20}
Random Solutions
The description for Event ID ( 0 ) in Source ( .... ) cannot be found
Outlook popping and recent contacts not working
SQL Query - Simple Syntax Issue
Microsoft Access 2007 Question
Access - Feed a constant value into sub-forms
Acces table calculated field and query filter
How to Submit HTML Form in VB.Net
"The project location is not trusted." error when in XP Mode
Remove underscore from begining of filenames?
printing on roll paper in vb.net