Using regular expressions in JavaScript
What is a Regular Expression A regular expression is a sequence of characters that forms a search pattern. Let us understand the use of regular expressions with an example. The following strings contain words and numbers. From the string we want to extract all the numbers.