//符合xxxx-xx-xx的日期格式化
(/d{2}(([02468][048])|([13579][26]))[/-]{1}((((0{1}[13578])|(1[02]))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(3[01])))|(((0{1}[469])|(11))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(30)))|(0{1}2{1}[/-]{1}((0{1}[1-9])|([1-2][0-9]))) ))|(/d{2}(([02468][1235679])|([13579][01345789]))[/-]{1}((((0{1}[13578])|(1[02]))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(3[01])))|(((0{1}[469])|(11))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(30)))|(0{1}2{1}[/-]{1}((0{1}[1-9])|([1-2][0-8]))) ))
(/d{2}(([02468][048])|([13579][26]))[/-]{1}((((0{1}[13578])|(1[02]))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(3[01])))|(((0{1}[469])|(11))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(30)))|(02[/-]{1}((0{1}[1-9])|([1-2][0-9]))) ))|(/d{2}(([02468][1235679])|([13579][01345789]))[/-]{1}((((0{1}[13578])|(1[02]))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(3[01])))|(((0{1}[469])|(11))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(30)))|(02[/-]{1}((0{1}[1-9])|([1-2][0-8]))) ))
var r = str.match(/(/d{2}(([02468][048])|([13579][26]))[/-]{1}((((0{1}[13578])|(1[02]))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(3[01])))|(((0{1}[469])|(11))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(30)))|(02[/-]{1}((0{1}[1-9])|([1-2][0-9])))))|(/d{2}(([02468][1235679])|([13579][01345789]))[/-]{1}((((0{1}[13578])|(1[02]))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(3[01])))|(((0{1}[469])|(11))[/-]{1}((0{1}[1-9])|([1-2][0-9])|(30)))|(02[/-]{1}((0{1}[1-9])|([1-2][0-8])))))/);