in reply to Regex word boundary and escaped characters
\b only matches the start of the string if the first character is a \w character because it "[counts] the imaginary characters off the beginning and end of the string as matching a \W". That is, "+testing" is treated as if it were the middle of "*+testing*" (using "*" as the "imaginary characters off the beginning and end of the string") and there is no \b between the "*" and the "+".
- tye
|
|---|