isIp4Address and mustBeIp4Address

small functions to check if a string is a valid ip address

You are now following this Submission

small functions to check if a string is a valid ip address
isIp4Address: input is a string or char array. return value is boolean.
mustBeIp4Address: gives back true or gives an error. Like other property/function validators.
examples:
isIp4Address('123.55.2.1') => true
isIp4Address('123.455.2.1') => false
isIp4Address('hello world') => false
isIp4Address('') => false
mustBeIp4Address ... calls isIp4Address => same results, but throwing error

Cite As

Stefan Schuberth (2026). isIp4Address and mustBeIp4Address (https://au.mathworks.com/matlabcentral/fileexchange/123825-isip4address-and-mustbeip4address), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0