- Regular Expressions Introduction
A regular expression is a way to express a pattern to match strings of text. The expression itself consists of terms and operators that allow us to define these patterns. “RegExp” stands for regular expression.
The search pattern can be used for text search and text replace operations. A regular expression can be a single character, or a more complicated pattern. Regular expressions can be used to perform all types of text search and text replace operations.
The syntax and an example follows:
/pattern/modifiers; var patt = /w3schools/i;
the i above modifies the search to be case insensitive.