[Israel.pm] Talk request

Gaal Yahas gaal at forum2.org
Sat Mar 6 09:23:51 PST 2004

On Fri, Mar 05, 2004 at 12:27:15AM +0200, Ran Eilam wrote:
> I wish someone would give a talk about creating custom RE engines, as
> "explained" in perlre.

Until such a talk is given, take a look at Regexp::Common (by Damian
Conway and maitained by Abigail). The main module creates a custom
engine that does things like determine at match runtime whether to ()
or to (?:) certain submatches.

The whole module is impressive, or sick. The Regexp::Common::comment
class, for instance, matches comments in many, many, many programming
languages, including Beatnik:

     The estoric language Beatnik only uses words consisting of letters.
     Words are scored according to the rules of Scrabble. Words scoring
     less than 5 points, or 18 points or more are considered comments
     (although the compiler might mock at you if you score less than
     5 points).

Gaal Yahas <gaal at forum2.org>

More information about the Perl mailing list