Handy Orchard

Regex structure inspector

Inspect a JavaScript regular expression AST without executing matches.

Your input

Outputs are cleared when the input changes.

Result

Enter your data or use the example, then run the tool.

Worked example

The sample combines a named group, Unicode letter property and lookbehind. Node ranges use UTF-16 offsets.

Method

regjsparser builds the actual AST with named groups, lookbehind, Unicode properties/sets and modifier features enabled. Node type identifiers remain upstream code names.

Limits

Pattern ≤10,000 characters, AST depth ≤60 / 20,000 JSON nodes. Flags are unique dgimsuvy; u and v are mutually exclusive. JavaScript syntax only, not full PCRE. Parsing does not execute regex, prove safe runtime or rule out ReDoS.

All work stays in this browser. Each disposable worker is terminated after 2.5 seconds or cancellation. Inputs and processing logs are not sent to analytics.

Sources

Pinned sourceThird-party notices

Related tools

JavaScript regex testerJavaScript AST explorerGlob pattern tester

Your inputs stay on this device. Only optional, consented page visits are measured. Input values, files, filenames and processing logs are not sent to Analytics.

When switching languages, text, settings and selected files are temporarily kept on this device. Transfers are removed after restoring; interrupted transfers are cleaned up on a later visit. Inputs and files are never uploaded.