JavaScript strings and regular expressions
In this video we will discuss using regular expressions with some of the JavaScript string object methods. In JavaScript regular expressions can be used with the following string methods. 1. match() 2. replace() 3. split() 4. search() Along with regular expressions you can use modifiers to specify the kind of search you want to perform. g Global search i Case-insensitive search m Multiline search Let us look at some examples of using the above methods with regular expressions Using regular expression with JavaScript string object's match() method. All the numbers in the string will be returned.