14 January 2004 0 comments Python
This blog post is 19 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.
- 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 category:
- Best practice with retries with requests 19 April 2017 Python
- How much faster is Redis at storing a blob of JSON compared to PostgreSQL? 28 September 2019 Python
- Fastest way to find out if a file exists in S3 (with boto3) 16 June 2017 Python
- Interesting float/int casting in Python 25 April 2006 Python
- Fastest way to unzip a zip file in Python 31 January 2018 Python
- Related by keyword:
- CSS selector simplifier regular expression in JavaScript 20 December 2017
- Advanced live-search with AngularJS 4 February 2014
- \b in Python regular expressions 14 June 2005
- Calculator in Python for dummies 17 December 2007
- \B in Python regular expressions 23 July 2005