Using Regular Expresions to change .htm to .php in files

Mark mark at mailinator.com
Sun Aug 26 12:23:05 CEST 2007


On Thu, 23 Aug 2007 12:27:10 -0700, Tobiah wrote:
> sed "s/.htm/.php/g" < $each > /tmp/$$

This line should be:

sed "s/\.htm$/.php/g" < $each > /tmp/$$




More information about the Python-list mailing list