I want to validate a text input with ng-pattern directory in AngularJs.
The text input can have multiple IP addresses and IP ranges with ,
(comma) separated.
for an example;
172.168.21.3, 172.168.45.3/8, 172.53.23.12
Can someone help me on this.
why not try something like this:
That regex should match an IP Address any number of times with a conditional comma on the end, I put together a small plnkr example.