Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 04, 2012 12:23 PM by chaaraan
Member
39 Points
48 Posts
Jul 04, 2012 12:14 PM|LINK
Hai i need a regular expression for the following format
First two digit are number and next two are letters and next two digits are numbers ( For ex. 45AB69) Not allow space and special characters
I have given like this "^[0-9A-Z]+$", It allows only numbers and character with uppercase but not in the specific format.
Participant
1044 Points
424 Posts
Jul 04, 2012 12:21 PM|LINK
Hi use this one "^[0-9A-Z0-9]+$"
All-Star
34295 Points
5514 Posts
Jul 04, 2012 12:22 PM|LINK
try this
[0-9]{2}[a-zA-Z]{2}[0-9]{2}
hope this helps...
Contributor
2170 Points
484 Posts
Jul 04, 2012 12:23 PM|LINK
Hi
Try this
^[0-9]{2}[A-Z]{2}[0-9]{2}$
Regards,
Charan
Hisanth
Member
39 Points
48 Posts
Regular expression
Jul 04, 2012 12:14 PM|LINK
Hai i need a regular expression for the following format
First two digit are number and next two are letters and next two digits are numbers ( For ex. 45AB69) Not allow space and special characters
I have given like this "^[0-9A-Z]+$", It allows only numbers and character with uppercase but not in the specific format.
nageshrgosul
Participant
1044 Points
424 Posts
Re: Regular expression
Jul 04, 2012 12:21 PM|LINK
Hi use this one "^[0-9A-Z0-9]+$"
kedarrkulkar...
All-Star
34295 Points
5514 Posts
Re: Regular expression
Jul 04, 2012 12:22 PM|LINK
try this
[0-9]{2}[a-zA-Z]{2}[0-9]{2}
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
chaaraan
Contributor
2170 Points
484 Posts
Re: Regular expression
Jul 04, 2012 12:23 PM|LINK
Hi
Try this
^[0-9]{2}[A-Z]{2}[0-9]{2}$
Regards,
Charan