Garrett Rowe is spot on
Try this:
^(\d*)([a-zA-Z]+)([A-Za-z]|\d)*$
What it says:
- May start with a number ^(\d*)
^ = beginning of line
\d = digit 0-9
* = 0 or more
- Must have at least one letter ([a-zA-Z]+)
a-zA-Z = any letter
+ = 1 or more
- Then ends with any number of letters or numbers ([A-Za-z]|\d)*$
$ = end of string
A great place to test your RegEx patterns is:
http://jakarta.apache.org/regexp/applet.html Good Luck