var reg = /(\]*href[\"\'\=\s]+[^\w]*)(\w+)[^\w]+(\w+)\?([^\=]+)\=([^\&]+)\&([^\=]+)\=([^\&\'\"\>\s]+)([\"\'\s]+[^\>]*\>)/gi;var html = document.body.innerHTML;document.body.innerHTML= html.replace(reg, "$1$2-$3-$4-$5-$6-$7.html$8");