-
Python RE Module: Word Boundaries
In regular expressions, the token “\b” is used for “word boundaries”. Â It will match at the start or at the end of a word. Â It is called an “anchor“. Â To match a full word in a string, it should be used as “\bcat\b” if we are looking for the word cat and will match the…