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

Beschreibung


\b findet eine Wortbegrenzung. Eine Wortbegrenzung 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.