title: regex for list of ip addresses
body: <p>I want to match a string containing either '*' or a comma separated list of IPv4 addresses.</p>
  
  <p>The following works for one IP or a star:</p>
  
  <blockquote>
    <p>/^(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|*)$/</p>
  </blockquote>
  
  <p>And I've tried to adopt this for having a list of IPs or a star:</p>
  
  <blockquote>
    <p>/^(?:^|, )(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|*)$/</p>
  </blockquote>
  
  <p>But it doesn't works as expected.</p>
  
  <p>Could you please help me?</p>
  
  <p>thx,
  Thomas</p>