javascript - How could I check my regexp value it correct? -


i need check value provided user correct , correspond following format 47:vkqfauuz, 5:dkqdau3d. first path number , second part string of 7-14 length?

edit: second part following symbols a-z, a-z, 0-9, _-

try regex:

^\d{1,2}:[a-za-z0-9_-]{7,14}$ 

fiddle


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -