in reply to Re: Regex help \b & \Q
in thread Regex help \b & \Q
Hi AnomalousMonk,
Thank you very much for all the efforts.</>
Your code my $count = () = $title =~ m{ (?<! \S) \Q$kw\E (?! \S) }xmsig; works perfectly for me except in a couple of cases(for me).
I have to neglect if the $kw is followed by a coma or a semicolon. Can you pls show me how to add the same to the code?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex help \b & \Q
by AnomalousMonk (Archbishop) on Apr 14, 2016 at 12:48 UTC | |
by Anonymous Monk on Apr 14, 2016 at 13:13 UTC |