in reply to Re^4: Regex help \b & \Q
in thread Regex help \b & \Q
Better:
my $count = () = $title =~ m{ (?:^|\s)\K \Q$kw\E (?! [^\s,;] ) }xig;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Regex help \b & \Q
by AnomalousMonk (Archbishop) on Apr 14, 2016 at 19:43 UTC | |
|
Re^6: Regex help \b & \Q
by rsFalse (Chaplain) on Apr 14, 2016 at 20:07 UTC | |
by AnomalousMonk (Archbishop) on Apr 14, 2016 at 20:51 UTC | |
by rsFalse (Chaplain) on Apr 15, 2016 at 10:18 UTC | |
by AnomalousMonk (Archbishop) on Apr 15, 2016 at 12:20 UTC |