Replace and inserting strings within .txt files with the use of regex
rantingrick at gmail.com
Sun Aug 8 04:46:18 CEST 2010
On Aug 7, 8:42 pm, MRAB <pyt... at mrabarnett.plus.com> wrote:
> That should be:
> data = data.replace('<?', '')
> data = data.replace('?>', '')
Yes, Thanks MRAB. I did forget that important detail.
> Strings don't have an 'insert' method!
*facepalm*! I really must stop Usenet-ing whilst consuming large
volumes of alcoholic beverages.
More information about the Python-list