Skip to content

Hey Trainer! Mein Code sagt [a-z]!

by Matthias Derer on April 6th, 2006

Reguläre Ausdrücke sind eine feine Sache. Noch feiner ist, wenn man sie versteht. Und am feinsten ist, wenn man sie frei testen und damit herumspielen kann. Für derartige Unterfangen bietet sich ein kleines Tool namens “The Regex Coach” an.
Das von Edi Weitz in Lisp geschriebene Programm bietet eine Vielzahl an Möglichkeiten, mit regulären Ausdrücken zu experimentieren. Die Liste der Features lässt sich sehen:

  • It shows whether a regular expression matches a particular target string.
  • It can also show which parts of the target string correspond to captured register groups or to arbitrary parts of the regular expression.
  • It can “walk” through the target string one match at a time.
  • It can simulate Perl’s split and s/// (substitution) operators.
  • It tries to describe the regular expression in plain English.
  • It can show a graphical representation of the regular expression’s parse tree.
  • It can single-step through the matching process as performed by the regex engine.
  • Everything happens in “real time”, i.e. as soon as you make a change somewhere in the application all other parts are instantly updated.

Der Regex Coach steht natürlich kostenlos auf der Seite von Edi für Linux und Win32 zum Download bereit.

]]>

Reguläre Ausdrücke sind eine feine Sache. Noch feiner ist, wenn man sie versteht. Und am feinsten ist, wenn man sie frei testen und damit herumspielen kann. Für derartige Unterfangen bietet sich ein kleines Tool namens “The Regex Coach” an.
Das von Edi Weitz in Lisp geschriebene Programm bietet eine Vielzahl an Möglichkeiten, mit regulären Ausdrücken zu experimentieren. Die Liste der Features lässt sich sehen:

  • It shows whether a regular expression matches a particular target string.
  • It can also show which parts of the target string correspond to captured register groups or to arbitrary parts of the regular expression.
  • It can “walk” through the target string one match at a time.
  • It can simulate Perl’s split and s/// (substitution) operators.
  • It tries to describe the regular expression in plain English.
  • It can show a graphical representation of the regular expression’s parse tree.
  • It can single-step through the matching process as performed by the regex engine.
  • Everything happens in “real time”, i.e. as soon as you make a change somewhere in the application all other parts are instantly updated.

Der Regex Coach steht natürlich kostenlos auf der Seite von Edi für Linux und Win32 zum Download bereit.

From → Uncategorized

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS