From: Raj Singh Date: 2008-08-13T10:31:47+09:00 Subject: regular expresson isue I have following regular expression to parse time. ([0-9]|0[0-9]|1[012]):([0-9]|0[0-9]|[1-5][0-9])\s*(am|pm) I don't want this regext to match 13:45 PM because the the numerical value before the colon should be limited to 12. How to fix it? You can play with this regex at http://www.rubular.com/regexes/863 -- Posted via http://www.ruby-forum.com/.