title: regular expression pattern to accept one or multiple ip addresses?
body: <p>I am using below regular expression pattern </p>
  
  <pre><code>pattern="^(\d|[1-9]\d|1\d\d|2([0-4]\d|5[0-5]))\.(\d|[1-9]\d|1\d\d|2([0-4]\d|5[0-5]))\.(\d|[1-9]\d|1\d\d|2([0-4]\d|5[0-5]))\.(\d|[1-9]\d|1\d\d|2([0-4]\d|5[0-5]))$|\s*
  </code></pre>
  
  <p>It will accept any one of the below ip address</p>
  
  <pre><code>1.1.2.3 or 192.122.134.1 or 198.23.45.56 
  </code></pre>
  
  <p>But i want it should accept single as well as  ip addresses with comma separated as well like below</p>
  
  <pre><code>1.1.2.3,192.122.134.1,198.23.45.56 
  </code></pre>
  
  <p>What changes i have to do in my regular expression?</p>