Julio Nguyen

Greenhorn
+ Follow
since Mar 06, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Julio Nguyen

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
18 years ago