vendredi 26 avril 2019

regex pattern for serial-number input

Someone can help me pls I have a serial-number input and I need the expression regex to validate this input [ex: 11-22-33333] number of character max=11, I added this pattern but it doesn't work

"pattern": "^[0-9]{2}*-?[0-9]{2}*-?[0-9]{5}$",

Aucun commentaire:

Enregistrer un commentaire