Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

regex ts

var trigger = "2",
    regexp = new RegExp('^[1-9]d{0,2}$'),
    test = regexp.test(trigger);
alert(test + ""); // will display true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #ts
ADD COMMENT
Topic
Name
5+4 =