Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

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!
0
davewalter1
Asked:
davewalter1
1 Solution
 
käµfm³d 👽Commented:
^[a-zA-Z][0-9]{4}$

Open in new window

0
 
davewalter1Author Commented:
Perfect! Thank you!
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

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