[cs615asa] Can we assume ip address are always legal?

Yanqiao Zhan yzhan14 at stevens.edu
Sat Mar 14 23:08:54 EDT 2015


Sorry, that's  {[0-9]{1,3}\.}{3}[0-9]{1,3}

2015-03-14 23:02 GMT-04:00 Yanqiao Zhan <yzhan14 at stevens.edu>:

> Hi friends,
> Can we assume that the ip address, mac address and netmasks in "ifconfig
> -a" output are always legal? In other word, we don't need to judge whether
> an ip address is in 0.0.0.0~255.255.255.255 or not, but simply say the
> address match the pattern {[0-9]{3}.}{3}(0-9){3} ? Though such pattern is
> quite straightforward.
>
> Thanks,
> Yanqiao
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs615asa/attachments/20150314/72a8546a/attachment.html>


More information about the cs615asa mailing list