Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- frase = "Python es un lenguaje de programación interpretado."
- print(frase.find('grama'))
- cadena_fecha = '11/04/2017'
- if re.match(r'\d+\d+/\d+', cadena_fecha):
- print('Coincide')
- else:
- print('No coincide')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement