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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -