I have a DateTime string ISO8601 formated
2012-10-06T04:13:00+00:00
and the following Regex which does not match this string
#(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})\+(\d{2})\:(\d{2})#
I can’t figure out why it does not match.
I escaped metacharacters, for me it seems to be OK.
EDIT :
The right way: http://jsfiddle.net/5n5vk/3/
Don’t quote the regex when specifying a regex in js. Forward slash is enough.