Need help with regex-colorizer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

140 Stars 20 Forks Other 6 Commits 4 Opened issues


Highlighter for JavaScript regex syntax

Services available


Need anything else?

Contributors list

# 53,571
3 commits

Regex Colorizer

Adds syntax highlighting to regular expressions for readability. Currently, only the JavaScript regex flavor is supported, with extensions for web reality. Any regex features not supported by JavaScript are marked as errors, along with some edge cases that cause cross-browser grief.

Use the following code to run Regex Colorizer for all elements on a page with class

// Don't run this line if you provide your own stylesheet

// Can provide a class name for elements to process (defaults to 'regex') RegexColorizer.colorizeAll();

There is also a

method that returns HTML with highlighting for the provided regex pattern string.

See Regex Colorizer's website for examples and more details.


Regex Colorizer copyright 2010-2012 by Steven Levithan.

Released under the MIT License.

Fork me to show support, fix, and extend.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.