RE Help

byte8bits at gmail.com byte8bits at gmail.com
Fri Sep 21 14:39:45 EDT 2007


Not specific to Python, but it will be implemented in it... how do I
compile a RE to catch everything between two know values? Here's what
I've tried (but failed) to accomplish... the knowns here are START and
END:

data = "asdfasgSTARTpruyerfghdfjENDhfawrgbqfgsfgsdfg"
x = re.compile('START.END', re.DOTALL)

x.findall(data)




More information about the Python-list mailing list