title: Modify Regular Expression for "dd/MM/yyyy"
body: <p>I have the regular expression for "dd/MM/yyyy" which works fine, </p>
  
  <pre><code>"^([0]?[1-9]|[1][0-2])[./-]([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0-9]{4}|[0-9]{2})$"
  </code></pre>
  
  <p>but I want to modify this so it also accepts 00/MM/2014. 
  My program interpret this as all the days in a specific month. For example 00/04/2014
  means all the dates in month of April.</p>
  
  <p>Can someone tell me what kind of change I need to make to above script to make this happen?</p>
  
  <p>Here is the code which I am using it in :</p>
  
  <pre><code>&lt;asp:TextBox ID="TextBox5" runat="server" MaxLength="1"  CssClass="MainContent"
                           style="text-align:justify" ValidationGroup="MKE" Width="130px" /&gt;
                       &lt;asp:ImageButton ID="ImgBntCalc" runat="server" CausesValidation="False" 
                           ImageUrl="images\calendar-schedulehs.png" /&gt;
                                      &lt;asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" 
                                          AcceptNegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True" 
                                          mask="99/99/9999" MaskType="Date" MessageValidatorTip="true" 
                                          OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" 
                                          TargetControlID="TextBox5"  /&gt;
                                           &lt;asp:MaskedEditValidator ID="MaskedEditValidator2" runat="server" 
                                          ControlExtender="MaskedEditExtender2" ControlToValidate="TextBox5" 
                                          Display="Dynamic" EmptyValueBlurredText="*"  ValidationExpression="^(?:[012]?[0-9]|3[01])[./-](?:0?[1-9]|1[0-2])[./-](?:[0-9]{2}){1,2}$"
                                          InvalidValueMessage="Date is invalid" ValidationGroup="MKE1" /&gt;
                                      &lt;asp:CalendarExtender ID="CalendarExtender1" runat="server"  Format="dd/MM/yyyy"
                                          PopupButtonID="ImgBntCalc" TargetControlID="TextBox5" /&gt; 
  </code></pre>