or download this
#!/usr/bin/perl
use strict; use warnings; # 75O0K8S - Benchmark all the Trigram-finder
+s!
use Benchmark qw(cmpthese ); # with liberty taken t
+o
...
push @tris, $1 while(s/^(.(..))/$2/); return @tri
+s; }
sub do_regexP { $_ = $str; s/((?:.)((?:.)(.)))(?=(.)(.))/$1$2$4$3$4$
+5/g;
return /(...)/
+g; }