jacarex
is a fast command-line tool for testing regular expressions interactively.
It also features a small tutorial for regex learning.
You need the Rust compiler to build jacarex
. Get it at rustup.rs
Jacarex is being developed with the current rustc v1.50
version, but should be buildable on other recent versions as well.
git clone https://github.com/vrmiguel/jacarex # clone the repo
cargo install --path jacarex # Install it
jacarex
usage is based on subcommands (similar to git
).
The subcommands available are playground
and tutorial
.
Simple regex tester and tutorial
USAGE:
jacarex [SUBCOMMAND]
FLAGS:
-h, --help Displays this message and exits
-V, --version Prints version information
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
playground Enters the Regex testing REPL.
tutorial Starts a set of guided interactive lessons on Regex matching.
Opens up a REPL where you can test a pattern against multiple text samples.
jacarex-playground
Enters the Regex testing REPL.
USAGE:
jacarex playground [OPTIONS]
OPTIONS:
-f, --filename <filename> Loads the file passed as argument as a test string
-w, --words <words>... Loads the words passed as arguments as test strings
Note: tester is an alias to playground, so `jacarex tester` works as well.
The tutorial
subcommand starts a series of interactive guided lessons on regex matching.
jacarex-tutorial
Starts a set of guided interactive lessons on Regex matching.
USAGE:
jacarex tutorial [OPTIONS]
OPTIONS:
-l, --lesson <lesson> Sets the lesson to be loaded
-
jacarex
uses the excellentregex
crate, and therefore inherits its advantages, such as great performance, as well as its quirks (no backtracking, no look around, no UTF-16 support). -
jacarex
relies on terminal colors to highlight matches (or lack thereof). Ano-colors
feature is planned but not currently implemented.
Any contributions are welcome!
Specially in making new lesson for the tutorial
Please file bugs on the Issues page