regular expression typescript code example
Example 1: using regex in javascript
//Adding '/' around regex
var regex = /\s/g;
//or using RegExp
var regex = new RegExp("\s", "g");
Example 2: Define REGEXP?
REGEXP is a pattern match in which matches pattern anywhere in the search value.