I am creating a 6 character alpha numeric sting dynamically
i just want to esure that there is at lest 2 character in that and a maximum of 3 characters.
others will be automatically digits (3-4)
I made a regular expression ie like
^([a-zA-Z]{2,3}[0-9]{3,4})|([0-9]{3,4}[a-zA-Z]{2,3}?)$
but is not matching for 22XX22
here i have 4 digits and 2 letters it must be matching
what to do?
KUTTAN
i just want to esure that there is at lest 2 character in that and a maximum of 3 characters.
others will be automatically digits (3-4)
I made a regular expression ie like
^([a-zA-Z]{2,3}[0-9]{3,4})|([0-9]{3,4}[a-zA-Z]{2,3}?)$
but is not matching for 22XX22
here i have 4 digits and 2 letters it must be matching
what to do?
KUTTAN
Comment