in reply to Re^3: Normal regexes stop working
in thread Normal regexes stop working
my $q_meta = quotemeta($q); my $tmp_test = ($page_title =~ /$q_meta/i) || 0; if (!$tmp_test) { my $tmp_test2 = lc $page_title eq lc $q; $is_exit = 1 if $tmp_test2; my $tmp_test3 = is_utf8($page_title); my $tmp_test4 = is_utf8($q); # For debugging. if ($is_dilbert) { warn qq(\nDILBERT 1a\t$page_title\t$q_meta\t$tmp_tes +t\t$tmp_test2\t$tmp_test3\t$tmp_test4\n") if \ $is_dilbert; }
produces DILBERT 1a Polygram compilation albums Polygram\ compilation\ albums 0 1 1 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Normal regexes stop working
by Anonymous Monk on Oct 24, 2010 at 17:26 UTC | |
by yegg (Acolyte) on Oct 24, 2010 at 20:47 UTC | |
by yegg (Acolyte) on Oct 24, 2010 at 22:40 UTC | |
|
Re^5: Normal regexes stop working
by JavaFan (Canon) on Oct 24, 2010 at 17:44 UTC | |
by yegg (Acolyte) on Oct 24, 2010 at 20:53 UTC |