Tag: regex

  • 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…