Regex and delimiter in javascript -
i not regex, need , stuck...
this got:
edited: working fine, take at...
http://jsfiddle.net/oscarj24/qrphk/1/
this need:
// first 4 numbers must 9908 // after 4 first numbers must : delimiter // after delimiter... // - allowed values numbers 0-9 // - min. length 3 // - max. length infinite // result: // - valid: 9908:123 or 9908:123456... // - invalid: 9908:12 or 9908:xyz
thanks.
var regex = /^9908:\d{3,}$/;
will match 9908: followed 3 or more digits.
Comments
Post a Comment