i want a regex pattern that accepts from 3 to 6 digits.. and only A,M or G at the end
eg:
1234G

I don't find any prob with the above one.

how about this :
^[0-9]{3,6}[a|m|g]$

Edited 5 Years Ago by Tess James: n/a

I don't find any prob with the above one.

how about this :
^[0-9]{3,6}[a|m|g]$

*we should use ^ and $ only if the string contains 3-6numbers ending with a|m|g.
*[a|m|g] should be used if anyone letter should be matched, it doesn't match for "am".

I doesn't know xanawa's requirement, so he can change according to it.

Edited 5 Years Ago by samueal: n/a

Remind that, You Should UpVote if Someone Help's you!!

freddie how can i do so?

freddie how can i do so?

You Find an Up arrow and Down arrow in right Corner of each answer, Clicking uparrow votes, and clicking down arrow Downvotes.

This question has already been answered. Start a new discussion instead.