Recon - Regular Expression Test Console

14 January 2004   0 comments   Python

http://webpages.charter.net/erburley/recon.html

Mind That Age!

This blog post is 14 years old! Most likely, its content is outdated. Especially if it's technical.

This is a fantastic little Python GUI using Tkinter, for testing your regular expressions in Python. You first paste or write in some text, then you doodle some regular expressions to see the outcome. What I do miss is exporting of actual code. Usually when I write my regular expression I fire up the interactive shell from which I can copy code when I'm happy with it. Like this:

>>> import re
>>> e=re.compile(r'\?q=(.*?)&', re.I)
>>> print e.findall("http://www.google.com.br/search?q=paper+plane&hl=pt-BR")
['paper+plane']

From silly code like that I can actually copy and paste the actual syntax. Ah well, I still like this Recon thing.

Comments

Thank you for posting a comment

Your email will never ever be published


Related posts

Previous:
Printer friendly and PDF version of every page 14 January 2004
Next:
So vivid dreams I couldn't get out! 15 January 2004
Related by Keyword:
CSS selector simplifier regular expression in JavaScript 20 December 2017
Advanced live-search with AngularJS 04 February 2014
Calculator in Python for dummies 17 December 2007
Geeking with Eterm and Tkinter 09 February 2006
Python regular expression tester 19 September 2005
Related by Text:
HTML Tree on Hacker News 18 May 2014
YouTube - Nigella's XXXmas 19 December 2008
How and why to use django-mongokit (aka. Django to MongoDB) 08 March 2010
How to track Google Analytics pageviews on non-web requests (with Python) 03 May 2016
hashin 0.7.0 and multiple packages 30 August 2016