Python-regex-tester 0

A standalone Python 2.7 online regex tester using the Bottle framework

Python online regex tester for Python 2.7+

This is a full featured web based Python_ regexp tester wih:

  • all main re methods:, re.match, re.findall, re.sub, re.subn
  • all main regex flags (re.U, re.I, re.X, etc)
  • ajax powered live matching as you type the pattern
  • match coloration

Try the demo_.


The clean way::

 pip install regextester

Voilà. This should open a browser with the regex tester web page.

It works as a stand alone app as well::

 git clone git:// regextester
 cd regextester/regex_tester; python



It uses:

  • the Bottle_ Python micro framework
  • the Blueprint CSS_ framework
  • the jQuery_ javascript framework

But all of them are already provided, the whole thing being less than 500 ko.

There is even a stand alone one file version in the static folder. Although it’s not the exact same version (the regex is not executed in separate process), it has the same features.

Since the project was initially only for us to use, it’s taking advantages of a few advanced CSS selectors and some HTML 5 goodies. Make sure you have an up to date browser.

What it lacks

  • some love: design is not the strong point of the product. And a spiner for ajax requests would help.
  • some configuration options: it dont haz it
  • some use: I have no time to find bugs or write tests, so please use and report. I only use it in Firefox and Chrome on Ubuntu 11.10 when programming.
  • some protection: you can make it crash if you enter huge chunks of text or a pattern with agressive lookaheads

I do accept pull requests :-)



Honestly, only because that’s the first FOSS licence I could find a text copy of when googling.

.. _Python: .. _Bottle: .. _JQuery: .. _Blueprint CSS: .. _demo:

Related Repositories



A standalone Python 2.7 online regex tester using the Bottle framework ...



A simple text analyzer that manages texts and provides for tools such as tokenizer, sentences splitter, and regex tester built with Python NLTK and PyGTK ...