Updated URL replacement pattern to avoid replacing URLs in tag attributes