Changed replace command with more robust <code> tag matching expression.