正则表达式格式化日期

 var str = "2016年4月11日";

str= str.replace(/[u5e74|u6708]/g,"-").replace(/u65e5/g,""); 
原文地址:https://www.cnblogs.com/smght/p/5379514.html