Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the re-engine-TRE CPAN distribution.

Report information
The Basics
Id: 41918
Status: open
Priority: 0/
Queue: re-engine-TRE

People
Owner: Nobody in particular
Requestors: jpierce [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: (no value)



Subject: Approximate matching is broken?
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'
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.