I am being frustrated by a regular expression to mask the input field. I want to Limit input to hh:mm AM|PM format and I can't get this regex to work.
I use this regex in conjunction with a jquery tool from `www.ThimbleOpenSource.com`. It was the filter_input.js tool or whatever.
It seems to work for a simple regular expression but the one I came up with doesn't seem to work. This is my jsFiddle test link below.
以上就是Regex for AM PM time format for jquery的详细内容，更多请关注web前端其它相关文章！