Coder Social home page Coder Social logo

rexi's Introduction

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

  • Interactive UI: Built on top of the textual library, providing a clean and intuitive interface to work with.
  • Regex Evaluation: Supports evaluating regular expressions using either match or finditer modes, allowing users to select the most suitable method for their needs.
  • Real-time Feedback: Instantly see how your regular expression patterns match or find iterations over your input, enhancing learning and debugging experiences.
  • Easy to Use: Get started quickly with a simple command. rexi reads input directly from stdin, streamlining the process of testing regular expressions.

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.

rexi's People

Contributors

royreznik avatar jshipley avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.