i want a regex pattern that accepts from 3 to 6 digits.. and only A,M or G at the end
eg:
1234G
xanawa
-3
Junior Poster
Recommended Answers
Jump to PostWhat have you come up with so far?
Jump to PostI don't find any prob with the above one.
how about this :
^[0-9]{3,6}[a|m|g]$
All 8 Replies
gusano79
247
Posting Shark
samueal
0
Junior Poster
Tess James
1
Junior Poster in Training
samueal
0
Junior Poster
xanawa
-3
Junior Poster
samueal
0
Junior Poster
xanawa
-3
Junior Poster
samueal
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.