K2Developer-1
Scholar

Expression to Accept IP Address

I need a K2 Expression to accept IP Address in the below format.

 

 

IPv4 

255.255.255.255

0 Kudos
Reply
2 Replies
boringNerd1
Apprentice

Re: Expression to Accept IP Address

Try this:


 


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


 

0 Kudos
Reply
K2Developer-1
Scholar

Re: Expression to Accept IP Address

Hi

 

Thank you !

 

It works...

0 Kudos
Reply