• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

regex - check string

I need a regex with this pathern.
The first two character has to be letters, and the rest (next 4) needs to be numberic number. Max len is 6.

sample

AB0001
DE1111
0
VBdotnet2005
Asked:
VBdotnet2005
2 Solutions
 
Matt VCommented:
How about

[a-zA-z]{2}[0-9]{4}
0
 
bepsoccer1Commented:
[A-Z]{2}\d{4} should work for you.
0
 
VBdotnet2005Author Commented:
thank you
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now