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 23 << | Předešlý | Následující | Obsah | Regulární výrazy

Popis


\B nalezne všechno, co není okraj slova. Okraj slova (\b) je definován jako bod mezi dvěma znaky, přičemž na jedné straně je \w a na druhé \W (na pořadí nezáleží).

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: \B.
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: .\B
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.