Skip to content

Instantly share code, notes, and snippets.

@josinovmota
Created July 28, 2022 18:03
Show Gist options
  • Save josinovmota/f01d7477f73e782e628b791f7b2387e2 to your computer and use it in GitHub Desktop.
Save josinovmota/f01d7477f73e782e628b791f7b2387e2 to your computer and use it in GitHub Desktop.
asdasd
principal = {'titulos': []}
for match_titulo in FIND_TITLE.finditer(cf):
titulo_identificador = { 'titulo_identificador': match_titulo.group('titulo_numero')}
principal['titulos'].append(titulo_identificador)
for match_capitulo in FIND_CHAPTER.finditer(str(match_titulo)):
capitulo_identificador = { 'capitulo_identificador': match_capitulo.group('capitulo_numero')}
principal['titulos'].append(capitulo_identificador)
principal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment