Boost C++ Libraries: Ticket #32: regex problem https://svn.boost.org/trac10/ticket/32 <pre class="wiki">I have the following problem with regex. I want to check a date format. The possible formats are dd.mm.yy or dd.mm.20yy My regular expression is: (([0]?[1-9]|[1-2][0-9]|3[0-1])[.]([0]?[1-9]|1[0-2])[.] (20[0-9]{2}|[0-9]{2})) regex_match fails, when i try 01.02.200 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/32 Trac 1.4.3 John Maddock Fri, 30 May 2003 11:26:30 GMT status changed https://svn.boost.org/trac10/ticket/32#comment:1 https://svn.boost.org/trac10/ticket/32#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=14804 Look more closely: your expression should fail in that case! It should match 01.02.20 or 01.02.2000 but not 01.02.200 John Maddock </pre> Ticket