Regular Expressions Help

Greetings!

I'm not wonderful with regular expressions, and so I wonder if you'd help me with a simple one. In my aspx page, I'd like to require a field to contain five characters, with a leading letter and four following digits as, "a1234."

Can you help with a regular expression that would accomplish this?

Thanks!
davewalter1Asked:
Who is Participating?
 
käµfm³d 👽Connect With a Mentor Commented:
^[a-zA-Z][0-9]{4}$

Open in new window

0
 
davewalter1Author Commented:
Perfect! Thank you!
0
All Courses

From novice to tech pro — start learning today.