shwetha sonar

shwetha sonar

  • NA
  • 5
  • 2.6k

Regular Expression for User Name

Nov 18 2011 6:12 PM
Hi,

Do any one of you know the regular expression for user name that allows special characters(. and _) but not at the end of the string. For example, it should not allow the user to enter "john123." or "John_". But the otherwise is acceptable. For example, the user names "john.harlow" or "john_harlow".

Thanks
Shwetha

Answers (5)