scanning through page and replacing all instances of 00:00:00.00

Fredrik Lundh fredrik at pythonware.com
Mon Apr 17 17:37:12 EDT 2006


"Kun" wrote:

> I have a python-cgi file that pulls data from an sql database, i am
> wondering what is the easiest way to remove all instances of
> '00:00:00.00' in my date column.
>
> how would i write a python script to scan the entire page and delete all
> instances of '00:00:00.00', would i use regular expressions?

umm.  if you're using a database, why not filter out uninteresting dates either
in the SQL statement, or when you're building the page ?

</F>






More information about the Python-list mailing list