[geeks] Regular Expressions

Caleb Shay caleb at webninja.com
Thu Aug 8 14:23:41 CDT 2002


Ryan wrote:

>Howdy,
>
>Does anyone happen to know why the following block
>of code refuses to find multicast addresses?
>
>netstat -rn | egrep \
>'([2][2-3][4-9])\.([0-9]{3})\.([0-9]{3})\.([0-9]{3})'
>
well, that wouldn't match something like 231.

>
>The multicast range is 224.0.0.0 to 239.255.255.255. I can also see
>multicast addresses in the netstat -rn output.
>
>I look forward to any thoughts or suggestions,
>Ryan
>_______________________________________________
>GEEKS:  http://www.sunhelp.org/mailman/listinfo/geeks



More information about the geeks mailing list