Volby 2006

názory a postoje 500 kandidátů do poslanecké sněmovny za

ČSSD, KDU-ČSL, KSČM, ODS a Stranu zelených.


English | >> česky << | Deutsch | Español ZVON > Tutorials > Regular Expressions Tutorial
>> Příklad 24 << | Předešlý | Následující | Obsah | Regulární výrazy

Popis


\A nalezne začátek řetězce. Je podobný ^, ale ^ nachází začátek pouze po na začátku řádku (po "newline"), pokud je zpracováván víceřádkový řetězec. Podobně \Z nalezne konec řetězce nebo konec řádku. Je podobný $, ale $ nalezne pouze konce řádku (před "newline").

Zdroj


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.

Případ 1


Regulární výraz: \A...
První zásah: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.
Všechny zásahy: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.

Případ 2


Regulární výraz: ...\Z
První zásah: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.
Všechny zásahy: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.