javascript 正则表达式的问题
var str= '2013-10-12 11:49:02';
var r= str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/);
r为什么会是null;
麻烦帮我看看这正则表达式对嘛
------解决方案--------------------var str= '2013-10-12 11:49:02';
var r= str.match(/^(\d{1,4})(-
------解决方案--------------------\/)(\d{1,2})\2(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})$/);