Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Free online tool for building, testing, and learning regular expressions with real-time results.
RegExr is a free, open-source online tool for building, testing, and learning regular expressions, built with HTML and JavaScript and hosted at regexr.com. It was created by Grant Skinner and the gskinner.com team, and its source code is available on GitHub under the GPL v3 license.
RegExr is an interactive web app that takes a regular expression pattern and a test string as input and shows matches in real time. It supports both JavaScript and PHP/PCRE regex flavors, making it useful for validating patterns across different engines. The tool also provides a reference library and community-shared patterns.
Type a pattern into the top field and paste a test string below; the results pane updates live. Roll over any part of the pattern to read a plain-English explanation, and use the Tools menu to explore matches or substitutions.
RegExr's build system uses Gulp. To build from source you need Node installed, then run npm install and finally gulp to start a dev server. This is relevant for developers who want to contribute pull requests or customize the tool.
Yes. The repository is licensed under GPL v3 and accepts pull requests for contributions.
RegExr supports both JavaScript and PHP/PCRE regular expressions. You can switch between the two in the interface.
Yes, RegExr lets you save expressions and share them via URLs. The community can also search for and rate shared patterns.
Use the GitHub issue tracker for RegExr. The project asks that general regex questions be posted on Stack Overflow instead.
