title: Unable to match IP regex in JavaScript
body: <p>Following is my code I am trying to validate IP addresses in front end, but somehow this Regex is not working -</p>
  
  <pre><code>var patt = /[0-255]\.[0-255]\.[0-255]\.[0-255]/;
  var str = "90.89.99.90";
  
  if(str.match(patt))
    console.log("Valid IP");
  else
    console.log("Invalid IP");
  </code></pre>
  
  <p>It should output - <strong>Valid IP</strong></p>
  
  <p>while these kind of IPs should return - <strong>Invalid IP</strong></p>
  
  <blockquote>
    <p>"fd.45.67.90", "256.67.67.89", "@@.45.67.90" etc </p>
  </blockquote>
  
  <p>Let me know what I am doing wrong with regex.</p>