LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rexi

Terminal UI for regex testing

TLDR

Pipe text and interactively test regex patterns
$ echo "hello world 123" | rexi
copy
Test patterns against a file
$ cat [logfile.txt] | rexi
copy
Test patterns against command output
$ ls -la | rexi
copy
Install via pip
$ pip install rexi
copy

SYNOPSIS

command | rexi

DESCRIPTION

rexi is an interactive terminal UI for testing regular expressions. It reads input from stdin and lets you evaluate regex patterns in real-time, providing instant visual feedback as matches are highlighted.It supports two evaluation modes:- match: uses Python's `re.match` / `re.search` semantics.- finditer: uses `re.finditer` to iterate all non-overlapping matches.

CAVEATS

rexi requires input on standard input; it does not accept file arguments directly. Regex syntax follows the Python `re` module rather than PCRE or POSIX.

HISTORY

rexi was created by Roy Reznik (royreznik) and is written in Python using the Textual TUI framework.

SEE ALSO

grep(1), ripgrep(1)

Copied to clipboard
Kai