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
MS Access Radio Button and Text Field Required....
Error Code: 403 Forbidden The server denied the specified Uniform Resource Locator (URL).
reading an xml file in c#
print pdf files from a watch folder, of print commandline.
MDT OS import problem
Microsoft tool to check for correct opened ports for AD
How to Call MDI Child Events from MDI Parent...not all MDI Children are the same form
Unable to see embedded file in Word document
I need help with DoCmd.DoMenuItem acFormBar command number
Adding an attribute to the xml root using FOR XML PATH syntax