Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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