title: Regex to match an IP range?
body: <p>Can someone help me with a regular expression to match a range of IPs. It should match something like this:</p>
  
  <pre><code>"203.0.113.0-203.0.113.255"
  </code></pre>
  
  <p>I tried the following but that only matches for a single IP:</p>
  
  <pre>
  ((?:\\d{1,3}\\.){3}\\d{1,3})(?:/((?:(?:\\d{1,3}\\.){3}\\d{1,3})|\\d{1,2}))?
  </pre>