Act fast, special offers end soon! Up to $294 is savings when you get Premium today.
Get offer codes

Regex \b dual use case

Hi all,

Just a general question. I noticed in the Regular Expression Basics course that on Screen 7, the course material states:

The escape sequence \b represents a backspace, so the final letter from our string is removed. The character sequence \b has a special meaning in regular expressions (which we’ll learn about later), so we need a way to write these characters without triggering the escape sequence.

And thereafter screen 9 goes on to talk about the actual use case, which is matches the position between a word character and a non-word character (whitespace or spacebar). So just to check my knowledge, if \b is used in a ordinary context, it will be used as a backspace (e.g. using print()), whereas when it is used in the context of raw string, it will be treated as the regex syntax used for word boundaries?

Thanks!