English | česky | >> Deutsch << | Español ZVON > Tutorials > Regular Expressions Tutorial
>> Beispiel 23 << | Zurück | Vor | Inhalt | Reguläre Ausdrücke

Beschreibung


\B findet alles, was nicht zu einer Wortbegrenzung gehört. Eine Wortbegrenzung (\b) liegt zwischen zwei Zeichen, wobei das eine über \w und das andere \W zu identifizieren wäre.

Quellcode


Ere iron was found or tree was hewn,    When young was mountain under moon; Ere ring was made, or wrought was woe,    It walked the forests long ago.

Fall 1


Regulärer Ausdruck: \B.
Erster Treffer:Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long ago.
Alle Treffer:Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long ago.

Fall 2


Regulärer Ausdruck: .\B
Erster Treffer:Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long ago.
Alle Treffer:Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long ago.