Just a general question. I noticed in the Regular Expression Basics course that on Screen 7, the course material states:
The escape sequence
\brepresents a backspace, so the final letter from our string is removed. The character sequence
\bhas 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?