in reply to Re^2: about word boundary in RE (use re 'debug')
in thread about word boundary in RE

\b is a zero width match. It does need the space to recognize a word boundary, but it does not consume it. And therefore you need to add a space to your pattern.

  • Comment on Re^3: about word boundary in RE (use re 'debug')

Replies are listed 'Best First'.
Re^4: about word boundary in RE (use re 'debug')
by anaconda_wly (Scribe) on Apr 02, 2013 at 08:49 UTC

    Sorry my mistake. I didn't understand that the \1 repeat the pattern. I just neglcted it. So it's clear to me now. The case is from website. Thanks!