Regex Explorer helper

Saw this concept in ActiveStates nifty Komodo product, and thought I would try to see if I could
roll my own easily (I needed something like this while working on regex templates for the masked
text ctrl).

This little utility lets you put in a regex epxression in one entry, then sample text in the next.
It will tell you as soon as you have a match, and will identify the matching groups (even named
groups with their names).

It was a lot easier than I thought it would be to write it. I must have finally bounced over the
first learning curve with wxPython (so many yet to go!). wxPython rocks!

Enjoy,

Jeff Childers
jchilders_98@yahoo.com

reg.py (4.34 KB)

···

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

This may also be of interest:

http://pythoncard.sourceforge.net/samples/redemo.html

ka

···

-----Original Message-----
From: J. Childers [mailto:jchilders_98@yahoo.com]
Sent: Sunday, February 16, 2003 11:34 AM
To: wxPython-users@lists.wxwindows.org
Subject: [wxPython-users] Regex Explorer helper

Saw this concept in ActiveStates nifty Komodo product, and thought I would
try to see if I could
roll my own easily (I needed something like this while working on regex
templates for the masked
text ctrl).

This little utility lets you put in a regex epxression in one entry, then
sample text in the next.
It will tell you as soon as you have a match, and will identify the matching
groups (even named
groups with their names).

It was a lot easier than I thought it would be to write it. I must have
finally bounced over the
first learning curve with wxPython (so many yet to go!). wxPython rocks!

Enjoy,

Jeff Childers
jchilders_98@yahoo.com

J. Childers wrote:

Saw this concept in ActiveStates nifty Komodo product, and thought I
would try to see if I could roll my own easily (I needed something
like this while working on regex templates for the masked text ctrl).

This little utility lets you put in a regex epxression in one entry,
then sample text in the next. It will tell you as soon as you have a
match, and will identify the matching groups (even named groups with
their names).

Cool. I had started something like this a long time ago while on a plane flight but never got around to finishing it. I've attached a copy with a few tweaks so the fonts/layout work better on wxGTK.

reg.py (4.3 KB)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!