Regulex is a tool that parses regular expressions into interactive syntax diagrams, rendering them directly on an HTML canvas. It converts a regex string into an abstract syntax tree and visualizes the structure as a navigable diagram, making the internal logic of a regular expression visually accessible.
Beyond basic visualization, Regulex provides syntax validation that detects and reports precise errors, including invalid back references and octal escapes. It also offers a state-machine visualization mode that maps regex AST nodes to NFA-like states and transitions, rendered as a directed graph to illustrate execution flow. The tool includes an embeddable widget architecture, allowing the diagram component to be inserted into external web pages via a simple script tag, and supports exporting diagrams as downloadable image files for documentation or sharing.