25
Views
11
Comments
validation for valid IP address
Question

any function is present in Outsystem to check validation for the valid IP address in Outsystems.

Note-

Ip should have the only digit,decimal and comma

Rank: #370

pratiksha Dabhade wrote:

any function is present in Outsystem to check validation for the valid IP address in Outsystems.

Note-

Ip should have the only digit,decimal and comma

Hi,

Have u check this one ,


Thanks

If you are talking about just the format , Can't  you use a simple regex validation  ? 


in case if you want to check the IP address to be within a range etc. You can use something like : https://www.outsystems.com/forge/component-overview/160/utilsipaddress


Cheers 

Rank: #10992


Ip should have the only digit, decimal and comma- I only want this validation in my field


Rank: #370

Hi, 

If you want to find IP address from text or looking for IP pattern . that can be match to Ip to validate.

Then in this case u can find Ip pattern from below link (or u can google it)- and apply it with Regex_Search in Text extension.

https://stackoverflow.com/questions/5284147/validating-ipv4-addresses-with-regexp


Hope this help,

Thanks

Rank: #193

pratiksha Dabhade wrote:

any function is present in Outsystem to check validation for the valid IP address in Outsystems.

Note-

Ip should have the only digit,decimal and comma

Hi Pratiksha, Can you give us more information about the use case?

You wanna check an ipv4 or ipv6, is a list of IPs, etc?


Anyway check this sample, I'm using a different pattern that checks whether a string is a valid IP address using the Regex_Search from the Text extension

SyntaxEditor Code Snippet

^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$


 

Check the oml attached


Hope I could help you

Best Regards

Carlos Lessa

IPValidator.oml