Pythex: a Python regular expression editor
pythex.org
pythex.org
That's something it'd be cool to see explored more; when I'm writing a regex, I usually have in mind a space of strings it's supposed to match, so a very useful debugging tool would be some way of showing me what that space is, so I can see if it's the same as the one in my head. I can't think of any cool infoviz tricks offhand that would be more useful than just a list of matching strings, but there must be something.
That aside, nice work! I'm sure I'll be using it. :)
It also has an animate mode, which is most interesting on regexes with heavy backtracking. For example, animations of the famous 'prime-digits-count' regex, succeeding (composite) or failing (prime):
49: http://regex.powertoy.org/?pat=/^1%3F%24|^%2811+%3F%29\1+%24...
47: http://regex.powertoy.org/?pat=/^1%3F%24|^%2811+%3F%29\1+%24...
One little thing, the regular expression input is in an html form, so if you hit enter (in most browsers) it POSTs to a blank page and you can lose your work. You can make the form onsubmit="return false;" if you never want it to submit.
Although I like yours better for what I'm doing.
Edit: was originally posted here (with a bad title and subsequently ignored):
Too bad, because I had wanted to see a python specific version of http://rubular.com
Hope you can try it now!
1. Can you add an option to return the code for the actual Python function? Then we can just copy&paste right into our source
2. A cheat sheet like on rubular. Make it a pull-up menu from the bottom or something, so it doesn't clutter your nice layout too much
Nice work!! :)