Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regex to validate an alpha-numeric string  RSS feed

 
Prashant Kumashi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been trying to write an expression to validate an alphanumeric string, but still unsuccessful

Scenario: The string always starts with alphabets [a-z A-Z], and can contain numerics, _, #, -.
Any string that does not match above criteria then its invalid string.

Can anybody help me in this... I am using java.util.regex package.


thanks...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!