title: How to validate this IP address using regex
body: <p>i want to make regular expression to validate these type of ip addresses.like</p>
  
  <pre><code>       192.168.12.1       # it may be any proper ip address 
  
         193.168.34.3-3     # this format should also be acceptable
  </code></pre>
  
  <p>Because i want to take value from user in range.</p>
  
  <p>Thanks in advance</p>