Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

check if string include numbers in typescript

var isInclude = myString.match(/d+/g);
//isInclude is RegExpMatchArray type and contain an array of letters are include in myString
 
PREVIOUS NEXT
Tagged: #check #string #include #numbers #typescript
ADD COMMENT
Topic
Name
2+2 =