title: Javascript regex to validate IPv4 and IPv6 address, no hostnames
body: <p>Please suggest a single JS regex that can validate:</p>
  
  <ul>
  <li>IPv4 address</li>
  <li>IPv6 address</li>
  </ul>
  
  <p>This regex should only validate address &amp; no hostnames.</p>