Diferencia entre revisiones de «Curso de Programación en Python/RegEx-3»
Ir a la navegación
Ir a la búsqueda
m |
(Sin diferencias)
|
Revisión actual del 11:02 10 ene 2016
[rrc@Pridd ~]$ python3
Python 3.4.3 (default, Jul 1 2015, 18:38:11)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> Texto = "El es un Canadiense llamando Couture."
>>> if re.search(r"Cou[stu].[rst]e",Texto):
... print("Descubrí uno!")
else:
... print("No hay un Couture aquí!")
...
Descubrí uno!