View Single Post
Old 09-29-2015, 05:09 AM   #9
gipsy
Connoisseur
gipsy began at the beginning.
 
Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
@elibrarian

If the 2 ^[...] are near, the search find them as one
I solve it changing the
Code:
		found = re.search(r'\^\[.*\]',html)
to
Code:
		found = re.search(r'\^\[.*?\]',html)
EDIT: Doesn't work right. It delete the text till the last ] in those that are near
I try to figure out why

Last edited by gipsy; 09-29-2015 at 07:13 AM.
gipsy is offline   Reply With Quote