in reply to Re: Regex Find Words
in thread Regex Find Words

moritz's solution is NOT the same. Your solution and Anomalous's expect regex patterns in @$left_text, but moritz's solution takes text strings and convert them into regex patterns using quotemeta.

Furthermore, he used \b, so his solution doesn't find "when" in "whenever" like yours does.

Mind you, if the inputs require quotemeta, \b might not work.

Update: Added second and third paragraph.