On 7/7/05, Germán Poó Caamaño <[EMAIL PROTECTED]> wrote: > Así, el * significa 1 o más ocurrencia de un caracter en particular. > Si quieres buscar cualquier palabra que empiece con r y termine con c, > entonces debes usar: > > /r.*c > * es 0 o más + es 1 o más
Por ejemplo re* hace match a "r" y también a "re" y "reee" Pero re+ hace match a "re" y a "reeeee" .* es 0 o más de cualquier caracter y .+ es uno o más Por lo tanto "texto.*" hace match a "texto" y a "textoculaquiercosa" pero "texto.+" hace match a "textocluaquiercosa" pero no a "texto" Salu2 -- BSG

