Regular expression
Regular expressions (or regex) are rules that govern which sequences of characters come up in a search.
**Regular expressions** (or _regex_) are rules that govern which sequences of characters come up in a search.
Regular expressions are implemented in various languages, but the best-known implementation is the Perl Implementation, which has given rise to its own ecosystem of implementations called PCRE (_Perl Compatible Regular Expression_). On the Web, JavaScript provides another regex implementation through the RegExp object.
## See also
- [Regular expressions](https://en.wikipedia.org/wiki/Regular_expressions) on Wikipedia
- [Interactive tutorial](https://regexone.com/)
- [Visualized Regular Expression](https://regexper.com/)
- [Writing regular expressions in JavaScript](/docs/Web/JavaScript/Guide/Regular_expressions)
Cite this
"Regular expression". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Glossary/Regular_expression JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy