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
Windows 7 in a workgroup with network shares
Open Sharepoint server's pdf file in asp.net...
Group By Min(date) and Max(date)
time as number?
How can I log on locally to a perimeter domain machine with a user from an internal domain account?
Save Record Only On Save
GPO Server 2003 XP Pro Clients Wallpaper
Trimming
SQL Delete Syntax
Question about Win7 x64 and 32-bit programs.