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

Beschreibung


\A selektiert vom Anfang der Zeichenkette an. Die Abkürzung ist Vergleichbar mit ^ (innerhalb einer Charakter-Klasse), aber ^ erzeugt auch Treffer nach einem Zeilenumbruch. Genauso wie \Z, welches ausgehend vom Ende einer Zeichenkette die Ergbnisse findet. \Z wiederum ist Vergleichbar mit $, aber $ wird auch bei jedem Zeilenumbruch 'aktiv'.

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: \A...
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: ...\Z
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.