fork download
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import re
  5.  
  6. dados = """<p>&#8220;Linha 1&#8221;</p>
  7. <p>&#8220;Linha 2&#8221;</p>
  8.  
  9. <p>&#8220;Linha 3 &#8221;</p>
  10. """
  11.  
  12. regex = re.compile("#8220;(\w.+)&#8221", re.MULTILINE)
  13. matches = regex.findall(dados)
  14.  
  15. print(matches)
Success #stdin #stdout 0.01s 7736KB
stdin
Standard input is empty
stdout
['Linha 1', 'Linha 2', 'Linha 3 ']