Linux command
rexi 命令
文本
Uses pipes, overwrite, or deletion. Check paths and options first.
命令示例
Pipe text and interactively test regex patterns
echo "hello world 123" | rexi
Test patterns against a file
cat [logfile.txt] | rexi
Test patterns against command output
ls -la | rexi
Install via pip
pip install rexi
说明
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.
FAQ
What is the rexi command used for?
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.
How do I run a basic rexi example?
Run `echo "hello world 123" | rexi` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more rexi examples?
This page includes 4 examples for rexi, plus related commands for nearby Linux tasks.