Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

RegEX to validate multiple IP Range and multiple IP Subnets

Ankita9793
Tera Contributor

Hi all,

 

Can someone please help me with Regex to validate multiple IP ranges and IP Subnets.


Example : 

IP range --> 10.0.0.10-10.0.0.100,10.0.0.10-10.0.0.100
IP subnet --> 10.0.0.10/32,10.0.0.10/32

TIA!!

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Ankita9793 

check this link and enhance your logic, it's an old blog from my side

IP Address Validation Client Side 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankita9793 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankita9793 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader