dimanche 8 mars 2020

Regex which allow only characters

I want create a regex with an optimized way that will check 2 characters range from A-Z,a-z and 3 digits, I tried with below regex

^[A-Za-z]{2}\d{3}$

but i am not sure this regex is optimized or not ?

Thanks in advance...

Aucun commentaire:

Enregistrer un commentaire