title: javascript regular expression to check for IP addresses
body: <p>I have several ip addresses like:</p>
  
  <ol>
  <li><code>115.42.150.37</code></li>
  <li><code>115.42.150.38</code></li>
  <li><code>115.42.150.50</code></li>
  </ol>
  
  <p>What type of regular expression should I write if I want to search for the all the 3 ip addresses? Eg, if I do <code>115.42.150.*</code> (I will be able to search for all 3 ip addresses)</p>
  
  <p>What I can do now is something like: <code>/[0-9]{1-3}\.[0-9]{1-3}\.[0-9]{1-3}\.[0-9]{1-3}/</code> but it can't seems to work well. </p>
  
  <p>Thanks. </p>