0

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

4
Contributors
8
Replies
10
Views
5 Years
Discussion Span
Last Post by samueal
2

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

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

Edited by Tess James: n/a

0

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 by samueal: n/a

0

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

freddie how can i do so?

1

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.