37,743
社区成员




import re
st = """<content height="18" width="1202" text-color="" link-color="" vlink-color=""><![CDATA[<div id="AutoGeneratedID-1">sdfsdfsdf</div>]]></content>"""
pat1 = re.compile("<!\[CDATA\[([^\]]+)\]\]>")
m = pat1.search(st)
if m:
st = st.replace(m.group(0), m.group(1))
print st