Skip to content
Python Interactive Regular Expressions
Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples add editor Sep 25, 2019
pire readme and version bump Sep 26, 2019
tests initial commit Sep 17, 2019
.gitignore initial commit Sep 17, 2019
LICENSE initial commit Sep 17, 2019
MANIFEST.in initial commit Sep 17, 2019
README.rst readme and version bump Sep 26, 2019
help.png add example images Sep 26, 2019
screenshot.png add example images Sep 26, 2019
setup.py readme and version bump Sep 26, 2019
tox.ini initial commit Sep 17, 2019

README.rst

pire

Python Interactive Regular Expression

PIRE is an interactive command-line interface allowing you to edit regexes live and see how your changes match against the input you specify.

example usage

Installation

Through PyPI:

$ pip install pire

Or from the project root directory:

$ python setup.py install

CLI Usage

Use --help/-h to view info on the arguments:

$ pire --help

Run pire against a text file:

$ pire application.log

Regexes used will be cached to a file in the present directory named regex.pire.

Pass a custom newline-delimited file with regexes:

$ pire -r app.pire application.log

Pass multiple files:

$ pire -r app.pire application.log application.log.1 application.log.2

Or:

$ pire -r app.pire application.log*

Hotkeys

hotkeys

Releases

0.2.0:
  • added several hotkeys for navigation
  • improved performance
0.1.1:
  • fixed bug with missing regex.pire file and output display
0.1.0:
  • curses interface implemented
0.0.1:
  • Project created
You can’t perform that action at this time.