On Mon, Apr 23, 2012 at 4:41 PM, Andrea Spadaccini < [email protected]> wrote:
> Ciao, > > [cut] > > > result = re.sub(r"(?m)(>\n+|\t|\r|\s+\?<)|(<!--.*?-->)", "", text) > > Ecco cosa potrebbe accadere se fai il parsing di documenti HTML con le > regex: > > http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 Oppure questo: http://stacktrace.it/2007/11/29/ce-sempre-leccezione-alla-regular/ :-) -- http://beri.it/ - Un blog http://beri.it/i-miei-libri/ - Qualche libro
_______________________________________________ Python mailing list [email protected] http://lists.python.it/mailman/listinfo/python
