royreznik / rexi

Terminal UI for Regex Testing
MIT License
300 stars 9 forks source link
python regex tui

Rexi

Testing License coverage versions style


rexi is a simple yet powerful CLI tool designed for developers, data scientists, and anyone interested in working with regular expressions directly from the terminal. Built with Python and leveraging the textual library, rexi offers a user-friendly terminal UI to interactively work with regular expressions. Demo

Features

Installation

pip install rexi

Usage

cat /etc/hosts | rexi

Once the UI is open, you can:

  1. Write a Regex Pattern: Enter your regex pattern in the designated input area.
  2. Choose a Mode: Select either match or finditer to apply your regex pattern.
  3. View Results: See the marked output based on your regex pattern and selected mode in real-time.

Contributing

We welcome contributions from the community! Whether it's adding new features, fixing bugs, or improving documentation, your help is appreciated. Please see our contribution guidelines for more information on how to contribute to rexi.

rexi is here to make working with regular expressions in the terminal an easy and interactive experience. Try it out and see how it can streamline your regex testing and learning process!

License

This project is licensed under the terms of the MIT license.