in reply to Regex Debugger?

I like to use perl -de 0 to do regex development and debugging. Start it up and put your test data in $_, then you can just play with successive iterations of x /bl(ah|oop)|zorch?/ until you get something that works. For debugging, put the troublesome data in $_ and then try successively longer portions of your regex until you find the part that's not matching.

Replies are listed 'Best First'.
Re^2: Regex Debugger?
by sth (Priest) on Oct 13, 2006 at 18:00 UTC
    As do I, I use perl -de 0 to test just about everything. I'll load modules, test them, test data structures, test certain lines of code...etc. Like I said just about everything.