isIp4Address and mustBeIp4Address

版本 1.0.0 (1.4 KB) 作者: Stefan Schuberth
small functions to check if a string is a valid ip address
6.0 次下载
更新时间 2023/1/23

查看许可证

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

引用格式

Stefan Schuberth (2025). isIp4Address and mustBeIp4Address (https://www.mathworks.com/matlabcentral/fileexchange/123825-isip4address-and-mustbeip4address), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2022b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0