Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Test-a-Rex

by jepri (Parson)
on Sep 03, 2001 at 13:25 UTC ( [id://109837]=note: print w/replies, xml ) Need Help??


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:??;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://109837]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found