PyRegs: The Python Regex Debugger

22 MAY 2013
PROGRAMMING PYTHON

Long ago, I learned the regular expressions in order to write a simple syntax highlighting engine. Regular expressions are not hard to master, but take time to practice. Kodos was the regex debugger of my choice, as it was written in Python. All these years Kodos was a "must have" tool on my development machines. Suddenly with the new version of Debian operating system, Kodos was not in the repositories anymore! Why? Kodos is based on QT3 widgets toolkit, which is a bit outdated nowadays (QT5 has been released recently) and was removed from Debian 7.0 ("Wheezy"). That is how I decided to write a small Python regex debugger in Python 3 and its de-facto standard Tkinter bindings to the Tk GUI toolkit.

PyRegs v0.1

Features:

  • Written in Python 3
  • Tkinter widgets, which are available on most of the Python-supported platforms.
  • Python 3 regular expressions with Unicode support.
  • Easy matches and grouped values navigation.
  • Regex analysis in separate thread.
  • Quick regex reference.
  • Licensed under GPLv3.

Pyregs v0.1 is ready, you are encouraged to give it a try!

Installation

Run:

1
pip install pyregs

Or clone the repository from https://github.com/BasicWolf/pyregs

Screenshots

Match tab:

pyregs v0.1

Grouping by name:

pyregs grouping