Replacing whole words only

If you want to use Replace to replace “Co” with “Company” but you don’t want to replace “Company” with “Companympany”, you can do this with a simple regex:

Where \b means ‘word boundary’ in the regular expression.

2 Likes

This is a great tip for people who have never used Regex !

1 Like