English | česky | Deutsch | >> Español << ZVON > Tutorials > Regular Expressions Tutorial
>> Ejemplo 22 << | Anterior | Siguiente | Contenido | Expresiones Regulares

Descripción


\b coincide con el inicio de una palabra. El límite de una palabra (\b) puede ser definido como el punto entre dos caracteres que tengan \w de un lado y \W al otro (en cualquier orden).

Código Fuente


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.

Caso 1


Expresión Regular: \b.
Primera Ocurrencia: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.
Todas Las Ocurrencias: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.

Caso 2


Expresión Regular: .\b
Primera Ocurrencia: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.
Todas Las Ocurrencias: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.