Python online regex tester for Python 2.7+
This is a full featured web based Python regexp tester wih:
all main re methods: re.search, 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.
Setup
The clean way:
pip install regextester regex_tester
Voila. This should open a browser with the regex tester web page.
It works as a stand alone app as well:
git clone git://github.com/ksamuel/Python-regex-tester.git regextester cd regextester/regex_tester; python regexp_tester.py
Dependancies
None
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 :-)
Licence
GPL2.
Honestly, only because that’s the first FOSS licence I could find a text copy of when googling.
Metadata
Release files for RegexTester 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| RegexTester-0.5.tar.gz | 106.0 kB | Without provenance | Details for RegexTester-0.5.tar.gz |
Release files / RegexTester-0.5.tar.gz
| Download URL | RegexTester-0.5.tar.gz |
|---|---|
| Size | 106.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58e92b3dafddf75fd7663d2ac8a96fcb07aa0c6e4faf9cb2c8c546b02ed04f50
|
|
BLAKE2b-256 checksum How to use checksums |
b35a481a92ef5a4e3fc1c3817680a70f7b854427c7450dcf50f2f32929cdcd29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for RegexTester 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.