title: How to match IPv4 addresses
body: <p>I am trying to have my regex match the following:</p>
  
  <pre><code>169.254.0.0-169.254.254.255
  </code></pre>
  
  <p>Could anyone please help how can I achieve this.</p>
  
  <p>so far I have this:</p>
  
  <pre><code>169\.254\.([1-9]{1,2}|[1-9]{1,2}[1-4])
  </code></pre>
  
  <p>but it would also pick up 169.254.255.1 which should not be one of the matches.</p>
  
  <p>Please help!</p>
  
  <p>thanks</p>