Christian Seiler: PCRE: wieviel Leerzeichen frisst eine Wortgrenze?

Beitrag lesen

Meine Fragen: sind der Punkt, Komma etc. _und_ die Leerzeichen zwischen Vor- und Nachname durch das \b abgedeckt?

\b hat die Länge 0, matcht also gar nichts.

Im PCRE-Manual habe ich es nicht gefunden, aber das ist auf englisch und da übersehe ich gerne mal was...

|  \b
|     word boundary
| [...]
| A word boundary is a position in the subject string where the current
| character and the previous character do not both match \w or \W (i.e. one
| matches \w and the other matches \W), or the start or end of the string if
| the first or last character matches \w, respectively.