Word boundaries (\b) are zero-width, so you shouldn't capture them. ($1 and $2 will always be empty in your last line.)
Thus, $myin =~ s/\b$full\b/$abb/g; is sufficient.
In reply to Re: find and replace
by benizi
in thread find and replace
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |