Problem in Using re.subn()

Moshe Zadka moshez at math.huji.ac.il
Fri Feb 18 14:14:23 CET 2000


On Fri, 18 Feb 2000, Joseph C. Kopec wrote:

>     SubResult = re.subn('<!-- *** INSERT CONTENT HERE *** -->', Content,
> TemplateInput)

This treats the '<!-- *** INSERT CONTENT HERE *** -->' as a regular
expression. Use string.replace instead.

--
Moshe Zadka <mzadka at geocities.com>. 
INTERNET: Learn what you know.
Share what you don't.





More information about the Python-list mailing list