Te lo digo de memoria: >>> import re
>>> string = open('file.data', 'r').read() >>> regex = re.compile("\[(.*?)\]") # Run findall >>> regex.findall(string) [u'cadena1', u'cadena2'] >>> string.close() -- lopz es libre, usa --> GNU/linux gentoo +--[RSA 2048]--+ | ..o.o=+ | | o =o*.+ | | . . *oO . | | .EBoo | | o.S | +--[lopz.org]--+ _______________________________________________ Python-es mailing list Python-es@python.org http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/