2013-02-06 43 views

回答

2

嘗試是這樣的:

import re 

body = '' # your text here 

for m in re.findall('info(.*)info', body): 
    print m 

docs

+0

歡迎你瞭解更多關於re!^_ ^ – jackcogdill