On Tue Dec 23 18:42:37 2008, JPIERCE wrote:
Show quoted text> No output from this
>
> use re::engine::TRE;
> $_ = "Jon Jacob Jinglehiemer Schmitt\n";
> print "Approx: $_" if /\(John Jacob Jingleheimer Schmidt\)\{~5\}/;
>
> But this comparison works fine
>
> echo "Jon Jacob Jinglehiemer Schmitt" |\
> tre-agrep -s5 'John Jacob Jingleheimer Schmidt'
Note that repetition specification does work though...
foreach ( qw/foobar xyzzy/ ){ print "zz matches: $_\n" if /\Qz{2}/; }
P.S. \Q is a nice way of avoiding back-slashitis, except that it escapes
some things that aren't RE meta characters and cause TRE to croak
(notably ~). Including an overloaded version in the module would be a
nice feature.