in reply to Re: regex backreference
in thread regex backreference

Maybe trying it against some data helps you understand why word boundaries are necessary.

foo foo kungfoo foo foobar foo fool