title: How can I validate a regular expression using jQuery Validation plugin?
body: <p>How can I validate a regular expression using jQuery Validation plugin? In this code we can validate the form using one jQuery plugin, "jQuery Validation" plugin but I don't know to validate regular expression by using this plugin. </p>
  
  <pre><code> &lt;!DOCtype html&gt;
     &lt;html&gt;
  &lt;script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/additional-methods.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/additional-methods.min.js"&gt;&lt;/script&gt;
  &lt;body&gt;
  &lt;form method="post" name="signup_form" enctype="multipart/form-data"&gt;
  &lt;table&gt;
  &lt;tr&gt;&lt;td&gt;First Name:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="first_name" placeholder="First name" required&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Middle Name:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="middle_name" placeholder="Middle Name"&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Last Name:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="last_name" placeholder="Last Name" required&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Username:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="username" placeholder="Username" required&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Password:&lt;/td&gt;&lt;td&gt;&lt;input id="password1" type = "password" name="password" required/&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Re-Enter Password:&lt;/td&gt;&lt;td&gt;&lt;input class="left" id="password_again" type = "password"  name="password_again" required/&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Email:&lt;/td&gt;&lt;td&gt; &lt;input id="email" type="email" name="email" required/&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Gender:&lt;/td&gt;&lt;td&gt;&lt;input type="radio" name="gender" value="male" required&gt;Male &lt;input type="radio" name="gender" value="female" required&gt; Female&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Date of Birth:&lt;/td&gt;&lt;td&gt;&lt;select name = "day" required&gt;&lt;option value=""&gt;Day&lt;/option&gt;
  &lt;?php for($i = 1; $i &lt; 32; $i++){?&gt;
  &lt;option value = "&lt;?php echo $i;?&gt;"&gt;&lt;?php echo $i;?&gt;&lt;/option&gt;
  &lt;?php }?&gt;
  &lt;/select&gt;
  &lt;select name="month" required&gt;&lt;option value=""&gt;Month&lt;/option&gt;
  
  &lt;option value = "jan"&gt;Jan&lt;/option&gt;
  &lt;option value = "feb"&gt;Feb&lt;/option&gt;
  &lt;option value = "mar"&gt;Mar&lt;/option&gt;
  &lt;option value = "apr"&gt;Apr&lt;/option&gt;
  &lt;option value = "may"&gt;May&lt;/option&gt;
  &lt;option value = "jun"&gt;Jun&lt;/option&gt;
  &lt;option value = "jul"&gt;Jul&lt;/option&gt;
  &lt;option value = "aug"&gt;Aug&lt;/option&gt;
  &lt;option value = "sep"&gt;Sep&lt;/option&gt;
  &lt;option value = "oct"&gt;Oct&lt;/option&gt;
  &lt;option value = "nov"&gt;Nov&lt;/option&gt;
  &lt;option value = "dec"&gt;Dec&lt;/option&gt;
  
  &lt;/select&gt;
  &lt;select name = "year" required&gt;&lt;option value=""&gt;Year&lt;/option&gt;
  &lt;?php for($i = 2013; $i &gt; 1904; $i--){?&gt;
  &lt;option value = "&lt;?php echo $i;?&gt;"&gt;&lt;?php echo $i;?&gt;&lt;/option&gt;
  &lt;?php }?&gt;
  &lt;/select&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Address Line 1:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="address1" placeholder="Address Line 1" required&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Address Line 2:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="address2" placeholder="Address Line 2"&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Country:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="country" placeholder="Country" required&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;State:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="state" placeholder="State" required&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;City:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="city" placeholder="City" required&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Pincode:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="pincode" placeholder="Pincode" required&gt;&lt;span&gt; *&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td colspan="2" align="center"&gt;
  &lt;input type="submit" value="Enter" formaction="sucess.php"&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;script &gt;
  
  
  $("#signup_form" ).validate();&lt;/script&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>