Maybe trying it against some data helps you understand why word boundaries are necessary.
foo foo kungfoo foo foobar foo fool
In reply to Re^2: regex backreference
by Corion
in thread regex backreference
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |