I'm trying to validate a form field where a user can input multiple DNS entries. I currently have the regex for validation of a IP address for a single entry but not if a user can add in multiple DNS entries using a "," as the delimiter.

Example (wanting to validate both entries):  

192.168.1.1, 198.168.1.2

Regex:
/^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/

[![I'm trying to validate the DNS Servers form field](https://i.stack.imgur.com/Dy70P.png)](https://i.stack.imgur.com/Dy70P.png)