Re: OT: Help with a REGEXP please!

2000-10-31 Thread Matthew Melvin
Try grep -E "192\.168\.2\.(6[4-9]|[7,8][0-9]|9[0-5])" M. On Wed, 1 Nov 2000, Dan Horth wrote: > hiya - I'm trying to make a regexp string to match the following IP range: > > 192.168.2.64/27 > > ie I want to match 192.168.2.64 through 192.168.2.95 inclusive, but > do not want to matc

OT: Help with a REGEXP please!

2000-10-31 Thread Dan Horth
hiya - I'm trying to make a regexp string to match the following IP range: 192.168.2.64/27 ie I want to match 192.168.2.64 through 192.168.2.95 inclusive, but do not want to match things like 192.168.2.60 or 192.168.2.99 I'm kinda close with: grep "192\.168\.2\.[6-9][0-9]" except it's basica