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.
In reply to Re^2: Regex Find Words
by ikegami
in thread Regex Find Words
by Xiong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |