Test and debug a regular expression pattern against sample text and see exactly which parts match in real time.
Learn what each piece of a complex regex pattern does by hovering over it for an inline explanation.
Self-host RegExr on your company intranet so developers can use it without sending proprietary text to an external site.
Browse and reuse community-submitted regex patterns for common tasks like email validation or URL parsing.
The live site at regexr.com needs no setup, self-hosting requires Node.js and running the default Gulp task to start a dev server.
RegExr is the source code for the website at regexr.com, an online tool for working with regular expressions. A regular expression is a pattern written in a small, specialized syntax that lets you search, match, and manipulate text in precise ways. They appear in almost every programming language, but the syntax can be hard to learn without a way to test patterns interactively. The site lets you type a regular expression in one panel and some sample text in another, and it highlights the matches in real time as you type. Hovering over part of the expression or a match shows an explanation of what that part does, which helps with understanding what went wrong when a pattern does not behave as expected. The tool supports two flavors of regular expression: JavaScript and PHP/PCRE, which are common in web development. Beyond basic matching, RegExr includes a reference section with examples, a Tools panel for inspecting results in different ways, undo and redo support in the editors, and the ability to save and share a particular expression via a URL. There is also a community library of patterns that other users have submitted, which you can search and rate. The README notes that this is the codebase behind the hosted website. If you want to run it yourself, it uses Node.js and a build tool called Gulp. Running the default Gulp task starts a local development server. The project is licensed under GPL v3, and the README mentions the option to contact the authors if you need different licensing terms.
← gskinner on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.