Text:
cat catter scat scatter nine-digit - nine - digit Regular expressions:
Everything, as in the description of meta characters: \b - matches the word boundary, \B - does not match.
However, if you use literal instead of cat :
It turns out the opposite. The pattern of \b-\b are hyphens inside the word, and \B-\B are surrounded by spaces. Why is that?