A word boundary is the regular expression construct (\b) that denotes a word boundary which indicates a pointer position that is ahead of and behind a word character and a non-word character or the other way around (\w\W or \W\w), and vice-versa for non-word boundaries (\B).