i am trying to work with ng-pattern but it throw an error. i want to validate a duration of time with the follwing pattern :
((?:(?:[0-1][0-9])|(?:[2][0-3])|(?:[0-9])):(?:[0-5][0-9])(?::[0-5][0-9])?(?:\\s?(?:am|AM|pm|PM))?)
but i have this error :
Lexer Error: Unexpected next character at columns 76-76 [] in expression [((?:(?:[0-1][0-9])|(?:[2][0-3])|(?:[0-9])):(?:[0-5][0-9])(?::[0-5][0-9])?(?:\s?(?:am|AM|pm|PM))?].
it seems that i have problem with back slash but what i know that if i want escaping back slash i have to make two back slash "\". the version of angularjs is 1.2.rc2