Summary A regular expression (also refered as regex) is a way to describe a pattern. It defines a search pattern for strings. The search pattern can be anything from a simple character, a fixing ...
Regular expressions are patterns that provide a powerful way to search and replace in text. In JavaScript, they are available via the RegExp object, as well as being integrated in methods of strings.