Oniguruma-To-ES
This is a basic REPL for testing the output of Oniguruma-To-ES, an Oniguruma to JavaScript RegExp transpiler. See Oniguruma syntax for an overview, but there are many subtleties to Oniguruma's differences from JavaScript that aren't shown in the docs.
Try it
Flags:
target
:
More options
The output shows the result of calling toRegExp
. Oniguruma-To-ES includes functions to generate additional formats: compile
, toOnigurumaAst
, and toRegexAst
(for an AST based on regex
). You can run all of these from the console on this page.
More details
compile
andtoRegExp
acceptpattern: string, flags?: string, options?: object
.toOnigurumaAst
andtoRegexAst
acceptpattern: string, flags?: string
.- You can pretty-print AST results by passing them to
printAst
in the console on this page.