JavaScript has powerful regular expression support.
A certain number of string functions can take arguments that are regular expressions to perform their work. These regular expressions can either be entered in literal format or as a call to the constructor of a RegExp object. The RegExp object is used for matching text with a pattern.
Solution
JavaScript has powerful regular expression support.
A certain number of string functions can take arguments that are regular expressions to perform their work. These regular expressions can either be entered in literal format or as a call to the constructor of a RegExp object. The RegExp object is used for matching text with a pattern.
Output of the above code:
need an explanation for this answer? contact us directly to get an explanation for this answer