title: How to check the IP range by java matcher regular expression
body: <p>My Current Regular Expression for checking the ip range between: <code>178.2.1.1 to 178.2.1.254 </code> is as follow:</p>
  
  <p><code>178.2.1.1.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-4])$</code></p>
  
  <p>Is there any other better expression way to check that.</p>