.networks
Welcome to my .NET related blog!
Monday, 25 February 2008
Regualr expression for alpha-numeric characters only
Below is the regular expression that will match only alphanumeric characters and restrict the length between 4-11 characters:
^\w{4,11}$
This will restrict the first three characters from being "bTv" (case sensitive):
^(?!bTv)[A-Za-z0-9]+$
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment