debugging regex

Thomas Guettler zopestoller at thomas-guettler.de
Thu Feb 6 05:39:30 EST 2003


Hi!

While having difficulties with a regex I thought
if there is a programm which returns for a given
regex some fitting example strings.

regex_sample(r'\(foo(2)?\)')

--> samples:
  (foo)
  (foo2)

Something like this would make debugging regex much easier.

  thomas





More information about the Python-list mailing list