1,/<\/head>/d /<\/html>/,$d /

/,/<\/p>/d s/\.asp/\.php/g