Newbie CGI problem

Gordon McMillan gmcm at
Mon Mar 20 23:19:41 CET 2000

richard_chamberlain writes:

> I'm having difficulty with a very elementary problem in a cgi script I
> copied straight off a web page. I believe the problem originates at
> SubResult = re.subn("<!-- *** INSERT CONTENT HERE *** -->",
> Content,TemplateInput) - this raises an exception pcre.error: ('nothing to
> repeat',6).

Because the asterisk has special meaning to re - it means 
"any number of the preceeding character".

Rather than try and learn from random stuff picked up off the 
sidewalk ("put that down, you don't know where it's been!"), 
you might want to start here:

- Gordon

More information about the Python-list mailing list