Replace and inserting strings within .txt files with the use of regex

rantingrick rantingrick at gmail.com
Sat Aug 7 22:46:18 EDT 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 mailing list