Hello Joseph,

On 10 Dec 2001 at 00:19:25 you wrote (at least in part):

JN> 1.  If I put "etracks.com" in the "String" field of a filter, will
JN> that rule pick up "shaggy.etracks.com"?

Yes.

JN> 2.  A related question is whether there are any characters recognized
JN> for root expanders or wild cards, so that I could include
JN> 123.456.789.* as an example, which would pick up any address with the
JN> first three character sets?

To achieve this you will have to use regular expressions.

You'll need to filter on

123\.456\.789\.\d{1,3}

and turn on 'Regular expressions' in 'Options' tab of filter.

The '\' escapes the wildcard '.' to be a real period and the trailing
'\d{1,3}' searches for a combination of digits form 1 to 3 characters
long.

So '123.456.789.SOS' will not be matched, while both '123.456.789.1'
and '123.456.789.762' will.
'123.456.789.123123980' would be matched too as you did not specify
what should be after the last tripel. To be sure it's only IP-style
you'll have to use

123\.456\.789\.\d{1,3}\D

What tells the filter it should search for '123.456.789.' followed by
1 to three digits, followed by a non-digit. That does not prevent you
form catching senseless IP's like

'123.456.789.698' as you have no chance to validate the number is
between 0 & 255 (including), but it's quite sure better than nothing :-)

HTH Pit
-- 
Regards
Peter Palmreuther                            mailto:[EMAIL PROTECTED]
(The Bat! v1.54 Beta/14 on Windows NT 5.0 Build 2195 Service Pack 1)

Time flies like an arrow; fruit flies like a banana.


-- 
________________________________________________________
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]
Latest Vers: 1.53d
FAQ        : http://faq.thebat.dutaint.com 

Reply via email to