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
Late bindingan ActiveX component
WSUS Update not installing
Can't change link source from one workbook to its apparently identical twin.
"Your changes could not be saved to {filename} but were saved to a temporary document named {3F8C6100}. Close the existing document, then open the temp document and save it under a new name"
OWA 2007 External Access
How to terminate a processes in MS SQL Server
Cannot connect new Windows 7 client to the domain
How do I install aTube Catcher 1.0 rc2 setup.231 program?
popup modal form
Print setup in Excel 2007