Skip to content

Instantly share code, notes, and snippets.

@cursodjangopro
Last active May 11, 2020 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursodjangopro/a18625d214bd521e99f2c355a1a063c2 to your computer and use it in GitHub Desktop.
Save cursodjangopro/a18625d214bd521e99f2c355a1a063c2 to your computer and use it in GitHub Desktop.
import re
minha_string_com_data = "Guido nasceu em 31/01/1956"
re.search(r'\d{2}/\d{2}/\d{4}', minha_string_com_data).group()
31/01/1956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment