Explore, test, and check regular expressions in the terminal.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets add picture to the readme Oct 2, 2018
src switch regex_search to sregex_iterator Oct 7, 2018
.gitignore add build dir to .gitignore Sep 28, 2018
CMakeLists.txt add ansi escape codes library Sep 30, 2018
LICENSE initial commit Sep 28, 2018
README.md update build instructions Dec 5, 2018
build.sh add build scripts Sep 28, 2018
crex.sh add shell script for interactive mode Dec 5, 2018
env.sh add build scripts Sep 28, 2018
install.sh add build scripts Sep 28, 2018

README.md

crex

Explore, test, and check regular expressions in the terminal.

crex example

Given your regular expression and text, crex will output matches, capture groups, and details. crex has a range of options, allowing fine grained control over matching and output. It uses ECMAScript grammar by default, while also accepting posix, extended posix, awk, grep, and extended grep grammars. Input can be received by piped stdin, or by using the -s option. Output options include plain, colour, and json formats.

Build

Environment:

  • tested on linux
  • c++ 14 compiler
  • cmake

Libraries:

  • my parg library, for parsing cli args, included as ./src/parg.hh

The following shell commands will build the project:

git clone <repo_url>
cd crex
./build.sh -r

To build the debug version, run the build script without the -r flag.

Install

The following shell commands will install the project:

./install.sh -r