search

Home  >  Q&A  >  body text

\b and \B are confused

1. Can any master explain it in an easy-to-understand way?

2. What is the difference between putting \B in front and behind

$zz = '/\Bthis/' and $zz = '/this\B/'

益伦益伦2565 days ago1537

reply all(3)I'll reply

  • myfey

    myfey2017-11-27 14:07:55

    /Definition starting point, \b is escape, personal understanding.

    reply
    0
  • 益伦

    Thank you for your answer, but it doesn’t seem to make sense.

    益伦 · 2017-11-28 22:12:57
  • 路过

    路过2017-11-18 08:27:06

    Personal understanding

    You are talking about regular matching, right?

    The former matches xxxthis
    The latter matches thisxxx

    reply
    0
  • Cancelreply