Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Validate IP address

Ankita9793
Tera Contributor

Hi All,
Can someone please help me with IP address validation Regex, maximum length allowed is 30, should not accept special characters including( "/" and "-" ). Should allow '" , " to enter multiple IPs.

Valid IP address formats example 

Single IP --> 10.1.1.10
Multiple IPs --> 10.0.0.10,10.0.0.11,10.0.0.12

 

TIA!!

1 REPLY 1

Anurag Tripathi
Mega Patron

Duplicate Question, I have answered this on the other thread here -> Validate IP Address format - ServiceNow Community

 

 

Check this out

Validate IP Address Using Regex : A Great use of... - ServiceNow Community

 

You can put the multiple IPs in an array and validate it as shown in the Blog

-Anurag