in reply to Test-a-Rex

Very nice. ++ from me. There are a few points though:

If you are going to put comments in the code, put # signs in front of them (lines 1-26).

Remember that you can catch the matchs as a list, like this:  my @matchs = ( $text =~ /$regexp/ ); So you can catch any number of matchs. This would mean using special cases for your function.

There are two other regexp analysers that I know of, but I would encourage you to continue work on yours because I haven't yet seen one that does perl regexps properly.

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Re: Test-a-Rex
by japhy (Canon) on Sep 03, 2001 at 17:11 UTC
    Michel Lambert's Rebug and Mark-Jason Dominus' Rx are two good Perl-oriented regex debuggers. After I write the new version of my regex parser, Michel will be incorporating the parser into his debugger.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;