f



Regular Expression filter on IP address range

How can I best implement a Regular Expression filter on the IP Address Range; 
46.102.176.0 - 46.102.191.255  ?


-- 
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp 


0
David
8/11/2011 4:32:52 PM
comp.pegasus-mail.windows 4388 articles. 0 followers. Post Follow

13 Replies
287 Views

Similar Articles

[PageSpeed] 55

David H. Lipman wrote on 11 aug 2011 in
comp.mail.pegasus-mail.ms-windows: 

> How can I best implement a Regular Expression filter on the IP Address
> Range; 46.102.176.0 - 46.102.191.255  ?

Not tested, but try:

46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
0
Evertjan
8/11/2011 5:25:42 PM
From: "Evertjan." <exjxw.hannivoort@interxnl.net>

> David H. Lipman wrote on 11 aug 2011 in
> comp.mail.pegasus-mail.ms-windows:
>
>> How can I best implement a Regular Expression filter on the IP Address
>> Range; 46.102.176.0 - 46.102.191.255  ?
>
> Not tested, but try:
>
> 46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}

Will do - Danke.



-- 
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp 


0
David
8/11/2011 5:30:08 PM
On article <j213j1026ii@news2.newsguy.com>, David H. Lipman wrote:

> 
> From: "Evertjan." <exjxw.hannivoort@interxnl.net>
> 
> > David H. Lipman wrote on 11 aug 2011 in
> > comp.mail.pegasus-mail.ms-windows:
> >
> >> How can I best implement a Regular Expression filter on the IP Address
> >> Range; 46.102.176.0 - 46.102.191.255  ?
> >
> > Not tested, but try:
> >
> > 46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}
> 
> Will do - Danke.

AFAIK, not on Pegasus Mail. It has a very particular regex syntax.

-- 
Kind regards,
Euler German

Please, reply preferably to the list.
Reply-To: partially ROT13, invalid=com
Due to spam I'm filtering-out GoogleGroups. Sorry. :(
0
Euler
8/11/2011 6:02:11 PM
From: "Euler German" <rstrezna.hfrarg@znvyahyy.invalid>

>
> On article <j213j1026ii@news2.newsguy.com>, David H. Lipman wrote:
>
>> From: "Evertjan." <exjxw.hannivoort@interxnl.net>
>>
>>> David H. Lipman wrote on 11 aug 2011 in
>>> comp.mail.pegasus-mail.ms-windows:
>>>
>>>> How can I best implement a Regular Expression filter on the IP Address
>>>> Range; 46.102.176.0 - 46.102.191.255  ?
>>>
>>> Not tested, but try:
>>>
>>> 46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}
>>
>> Will do - Danke.
>
> AFAIK, not on Pegasus Mail. It has a very particular regex syntax.
>

Then using P-Mail's syntax, what ?



-- 
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp 


0
David
8/11/2011 6:15:07 PM
David H. Lipman wrote:

> How can I best implement a Regular Expression filter
> on the IP Address Range; 46.102.176.0 - 46.102.191.255  ?
> 


Implement three regex lines:

46.102.17[6-9].[0-9]+*
46.102.18[0-9].[0-9]+*
46.102.19[0-1].[0-9]+*
0
Guy
8/11/2011 8:14:21 PM
Euler German wrote on 11 aug 2011 in comp.mail.pegasus-mail.ms-windows:

> On article <j213j1026ii@news2.newsguy.com>, David H. Lipman wrote:
> 
>> 
>> From: "Evertjan." <exjxw.hannivoort@interxnl.net>
>> 
>> > David H. Lipman wrote on 11 aug 2011 in
>> > comp.mail.pegasus-mail.ms-windows:
>> >
>> >> How can I best implement a Regular Expression filter on the IP
>> >> Address Range; 46.102.176.0 - 46.102.191.255  ?
>> >
>> > Not tested, but try:
>> >
>> > 46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}
>> 
>> Will do - Danke.
> 
> AFAIK, not on Pegasus Mail. It has a very particular regex syntax.

Where can we find those particularities?

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
0
Evertjan
8/11/2011 8:18:34 PM
Guy wrote on 11 aug 2011 in comp.mail.pegasus-mail.ms-windows:

> David H. Lipman wrote:
> 
>> How can I best implement a Regular Expression filter
>> on the IP Address Range; 46.102.176.0 - 46.102.191.255  ?
>> 
> 
> 
> Implement three regex lines:
> 
> 46.102.17[6-9].[0-9]+*
> 46.102.18[0-9].[0-9]+*
> 46.102.19[0-1].[0-9]+*

Wouldn't a . mean "any character"?

Why the final * ?


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
0
Evertjan
8/11/2011 8:32:56 PM
Evertjan. wrote:

> Guy wrote on 11 aug 2011 in comp.mail.pegasus-mail.ms-windows:
> 
>> David H. Lipman wrote:
>> 
>>> How can I best implement a Regular Expression filter
>>> on the IP Address Range; 46.102.176.0 - 46.102.191.255  ?
>>> 
>> 
>> 
>> Implement three regex lines:
>> 
>> 46.102.17[6-9].[0-9]+* 
>> 46.102.18[0-9].[0-9]+* 
>> 46.102.19[0-1].[0-9]+*
> 
> Wouldn't a . mean "any character"?
> 


"David Harris" Regular Expression is not like Perl.

  Perl '.' and '\.' equates to PMail/Merc '*' and '.'


> Why the final * ?
> 

It is not necessary; ' .[0-9]+ '
will match .1 or .123 or .12345


0
Guy
8/11/2011 9:07:42 PM
Guy wrote on 11 aug 2011 in comp.mail.pegasus-mail.ms-windows:

> Evertjan. wrote:
> 
>> Guy wrote on 11 aug 2011 in comp.mail.pegasus-mail.ms-windows:
>> 
>>> David H. Lipman wrote:
>>> 
>>>> How can I best implement a Regular Expression filter
>>>> on the IP Address Range; 46.102.176.0 - 46.102.191.255  ?
>>>> 
>>> 
>>> 
>>> Implement three regex lines:
>>> 
>>> 46.102.17[6-9].[0-9]+* 
>>> 46.102.18[0-9].[0-9]+* 
>>> 46.102.19[0-1].[0-9]+*
>> 
>> Wouldn't a . mean "any character"?
>> 
> 
> 
> "David Harris" Regular Expression is not like Perl.
> 
>   Perl '.' and '\.' equates to PMail/Merc '*' and '.'
> 
> 
>> Why the final * ?
>> 
> 
> It is not necessary; ' .[0-9]+ '
> will match .1 or .123 or .12345

Thank you.

But then, if we stipulate tested is a valid ip-string,
anywhere in a larger string,
the testing for 0 to 255 is not strictly necessary:

46.102.17[6-9]. 
46.102.18[0-9]. 
46.102.19[0-1].

Or would we have to match the whole string?

*46.102.17[6-9].* 
*46.102.18[0-9].* 
*46.102.19[0-1].*




-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
0
Evertjan
8/12/2011 6:55:38 AM
On article <Xns9F3EE2FD223F6eejj99@194.109.133.246>, Evertjan. wrote:

> 
> Euler German wrote on 11 aug 2011 in comp.mail.pegasus-mail.ms-windows:
> 
> > On article <j213j1026ii@news2.newsguy.com>, David H. Lipman wrote:
> > 
> >> 
> >> From: "Evertjan." <exjxw.hannivoort@interxnl.net>
> >> 
> >> > David H. Lipman wrote on 11 aug 2011 in
> >> > comp.mail.pegasus-mail.ms-windows:
> >> >
> >> >> How can I best implement a Regular Expression filter on the IP
> >> >> Address Range; 46.102.176.0 - 46.102.191.255  ?
> >> >
> >> > Not tested, but try:
> >> >
> >> > 46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}
> >> 
> >> Will do - Danke.
> > 
> > AFAIK, not on Pegasus Mail. It has a very particular regex syntax.
> 
> Where can we find those particularities?

You may try Help but regex documentation is quite weak. IMO the best 
documentation is on v4.41 help file (.hlp). Pmail's regex lacks several text 
patterns, quantifiers, anchors, classes, alternation, etc, specially when 
compared to Perl's regex the de facto reference.

On above example, Pmail won't recognize the escape char (\), nor digit pattern 
(\d), nor any quantifier ({1,3}), nor alternation (|) of any kind. To be 
completely honest, it's so awkward I gave up on it long time ago. Maybe someday 
David H. will consider using PCRE or other Perl compatible regex engine.

-- 
Kind regards,
Euler German

Please, reply preferably to the list.
Reply-To: partially ROT13, invalid=com
Due to spam I'm filtering-out GoogleGroups. Sorry. :(
0
Euler
8/12/2011 6:11:06 PM
On article <j2167c01hvm@news6.newsguy.com>, David H. Lipman wrote:

> 
> From: "Euler German" <rstrezna.hfrarg@znvyahyy.invalid>
> 
> >
> > On article <j213j1026ii@news2.newsguy.com>, David H. Lipman wrote:
> >
> >> From: "Evertjan." <exjxw.hannivoort@interxnl.net>
> >>
> >>> David H. Lipman wrote on 11 aug 2011 in
> >>> comp.mail.pegasus-mail.ms-windows:
> >>>
> >>>> How can I best implement a Regular Expression filter on the IP Address
> >>>> Range; 46.102.176.0 - 46.102.191.255  ?
> >>>
> >>> Not tested, but try:
> >>>
> >>> 46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}
> >>
> >> Will do - Danke.
> >
> > AFAIK, not on Pegasus Mail. It has a very particular regex syntax.
> >
> 
> Then using P-Mail's syntax, what ?

Not feasible.

-- 
Kind regards,
Euler German

Please, reply preferably to the list.
Reply-To: partially ROT13, invalid=com
Due to spam I'm filtering-out GoogleGroups. Sorry. :(
0
Euler
8/12/2011 6:11:57 PM
From: "Euler German" <rstrezna.hfrarg@znvyahyy.invalid>

>
> On article <j2167c01hvm@news6.newsguy.com>, David H. Lipman wrote:
>
>> From: "Euler German" <rstrezna.hfrarg@znvyahyy.invalid>
>>
>>> On article <j213j1026ii@news2.newsguy.com>, David H. Lipman wrote:
>>>
>>>> From: "Evertjan." <exjxw.hannivoort@interxnl.net>
>>>>
>>>>> David H. Lipman wrote on 11 aug 2011 in
>>>>> comp.mail.pegasus-mail.ms-windows:
>>>>>
>>>>>> How can I best implement a Regular Expression filter on the IP Address
>>>>>> Range; 46.102.176.0 - 46.102.191.255  ?
>>>>>
>>>>> Not tested, but try:
>>>>>
>>>>> 46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}
>>>>
>>>> Will do - Danke.
>>>
>>> AFAIK, not on Pegasus Mail. It has a very particular regex syntax.
>>>
>> Then using P-Mail's syntax, what ?
>
> Not feasible.

Guy provided a set of three Regular Expressions.

Between what Guy provided and; Received:*nord-dns.net*
I'm good to go.  The spam I didn't want is taken care of.


-- 
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp 


0
David
8/12/2011 7:18:25 PM
On article <j23ua401ovs@news3.newsguy.com>, David H. Lipman wrote:

> 
> From: "Euler German" <rstrezna.hfrarg@znvyahyy.invalid>
> 
> >
> > On article <j2167c01hvm@news6.newsguy.com>, David H. Lipman wrote:
> >
> >> From: "Euler German" <rstrezna.hfrarg@znvyahyy.invalid>
> >>
> >>> On article <j213j1026ii@news2.newsguy.com>, David H. Lipman wrote:
> >>>
> >>>> From: "Evertjan." <exjxw.hannivoort@interxnl.net>
> >>>>
> >>>>> David H. Lipman wrote on 11 aug 2011 in
> >>>>> comp.mail.pegasus-mail.ms-windows:
> >>>>>
> >>>>>> How can I best implement a Regular Expression filter on the IP Address
> >>>>>> Range; 46.102.176.0 - 46.102.191.255  ?
> >>>>>
> >>>>> Not tested, but try:
> >>>>>
> >>>>> 46\.102\.1(7[6-9]|8\d|9[0-1])\.\d{1,3}
> >>>>
> >>>> Will do - Danke.
> >>>
> >>> AFAIK, not on Pegasus Mail. It has a very particular regex syntax.
> >>>
> >> Then using P-Mail's syntax, what ?
> >
> > Not feasible.
> 
> Guy provided a set of three Regular Expressions.
> 
> Between what Guy provided and; Received:*nord-dns.net*
> I'm good to go.  The spam I didn't want is taken care of.

OK. If you're fine, I'm fine.

-- 
Kind regards,
Euler German

Please, reply preferably to the list.
Reply-To: partially ROT13, invalid=com
Due to spam I'm filtering-out GoogleGroups. Sorry. :(
0
Euler
8/12/2011 11:43:34 PM
Reply:

Similar Artilces:

Windows TCP/IP Filtering
Hi All, I've hit a problem with Windows 2003 (and 2000) TCP/IP port filtering configuration, trying to configure my server as described in http://support.microsoft.com/kb/309798 The issue I have is that Windows only seems to expose the ability to add a single port at a time to the filter list. I have a third party app which needs a range of 1500 ports open (don't ask me why, it's rubbish). I can find no way to set ranges, so either have to add 1500 port manually (not an option as I have numerous servers) or I have to disable IP Port filtering (which I don't want ...

Static IP Address in e-mail sent on dial up (Dynamic IP Address) connection
Hi all, I'm on a ADSL broadband net connection and have a static IP Address. When I connect my Laptop to dialup connection on a different phone line and send e-mail from it the e-mail header contains the static IP Address of my ADSL internet connection. I can see in header AA-XX-YYY...@myisp.com The AA-XX-YYY-ZZ is my static IP Address with . replaced by - (I don't how and why they replace . by - in e-mailheader) on ADSL net connection. I wonder how on the Earth the static IP Address of ADSL Internet connection from different telephone line all together is visible in a dialup inte...

Free Spam Filter for Outlook, Outlook Express and Windows Mail
SPAMfighter Standard is a free tool for Outlook, Outlook Express and Windows Mail that automatically and efficiently filters spam and phishing fraud. Visit: http://www.kqzyfj.com/click-3328616-10604900 ...

Free Spam Filter for Outlook, Outlook Express and Windows Mail #2
SPAMfighter Standard is a free tool for Outlook, Outlook Express and Windows Mail that automatically and efficiently filters spam and phishing fraud. Visit: http://www.kqzyfj.com/click-3328616-10604900 Does anyone else find it ironic that an anto-spam tool is being advertised via spamming, lol ...

proper range of of the broadcast address in IP address
Hi, i am new in the field of the networking , i am facing the problem regarding the boadcast range specifcation of the ip address . i want to know the proper range of the broadcast and want to know that .. the following address is braodcast address or not 223.255.222.222 please Tell me ASAP Reply to following email id Ramlakhan.S.Chauhan@gmail.com Regards Ram In article <1131949839.560394.50030@g47g2000cwa.googlegroups.com>, <ramlakhan.s.chauhan@gmail.com> wrote: > i am new in the field of the networking , i am facing the problem >regardin...

How Do I Filter Incoming Mail to a Given Address Against the Address Book?
How Do I Filter Incoming Mail to a Given Address Against the Address Book? I receive mail from many people I don't know, so I cannot filter all incoming mail against addresses in the Address Book (filter condition: Intersects Address Book), but my personal email address can and should be tested against the addresses in the Address Book. But, I can't figure out how to do that. I want to create a filter that does this: Header To: Contains myaddress@mydomain.com and intersects: any address in my address book transferred to: My personal mailbox skip rest When ...

Pegasus Mail Messages being filtered by addresseess Mail Systems
Hello, since a couple of months, and more for some addressees, I have experienced a problem: when I send them a message written with Pegasus Mail it is rejected by the target system... but not when I send it with Outlook Express or Mozilla Thunderbird... that whas happening a few years ago and Pegasus Mail drop during a few months its proudily X-Mailer keyword... would it be possible to do it again???, or is there any "back door option" for instructing Pegasus MAil not to sign its messages with this keyword?? Kind regards, ...

Regular expression to match regular expressions?
An expression parser (in TAWK) accepts textual regular expressions, which are then converted to internal form by TAWK's regex() function. If the regular expression is ill-formed, then TAWK's run-time package issues an error message on the console (rather than, say, returning a null value from regex()). Is there a cheap way to verify that a regular expression is properly formed *before* feeding it to regex(), so as to avoid that error message? A first thought: regex = /^\/.+\/i?$/ - starts and ends with '/' or '/i' (i-gnore case), must be non-null A second thought:...

What is the IP address ranges for these IP add. and subnet mask pairs?
IP Subnet Mask 212.140.133.181 255.255.255.0 212.140.133.181 255.255.255.224 212.140.133.181 255.255.248.0 212.140.133.181 255.255.255.128 Thanks in advance! In article <tpt2ovcmptc31vecaleto24at67j8klghj@4ax.com>, malandrin_b5 @yahoo.com says... > IP Subnet Mask > > 212.140.133.181 255.255.255.0 > 212.140.133.181 255.255.255.224 > 212.140.133.181 255.255.248.0 > 212.140.133.181 255.255.255.128 Nice to see the kids are back in school and don't know how to search for the subnet calculator. Son, we don'...

when a router is routing an ip packet from one host, will it add its own ip address into the ip packet as additional ip address?
when a router is routing an ip packet from one host, will it add its own ip address into the ip packet as additional ip address(without changing the source and destination). In article <1163501224.005221.86810@b28g2000cwb.googlegroups.com>, subscribe <samplestrategy@gmail.com> wrote: >when a router is routing an ip packet from one host, will it add its >own ip address into the ip packet as additional ip address(without >changing the source and destination). No. The destination MAC will change and the router will recalculate the CRC, but the IP addresses do no...

IP filter (range)
I've written a simple tomcat filter that checks a space separated list of IP addresses (taken as an argument). Now I need to make it work better. I need to modify it to accept a range of IP addresses as well as a single IP address. Any suggestions on the best way to work this problem? Thanks, -Mark "MF" <mfaine@knology.net> schrieb im Newsbeitrag news:vtsh9knmju1i54@corp.supernews.com... > need to modify it to accept a range of IP addresses as well as a single IP > address. Any suggestions on the best way to work this problem? What about regular expressions? S...

The power of regular expressions without regular expressions.
I'm not talking here about the relatively simple, quick and dirty, one-time regular expressions that you might interactively feed to grep. Rather, I'm talking about the more complex regular expressions that might appear in your Java programs. For many of us, regular expressions that are not fairly simple, are an unreasonable challenge, are effectively "write only" and so are virtually unmodifiable. Are you tired of escaping escapes of escapes and of things like " (.*) (\\d+|@|_)\\[(\\S+)( +)((-?)(\\d+\\.\\d\\d))" and "((?:(?:[...

Regular Expression Filters
Why doesn't the following expression *200.[0-9].[0-9].[0-9]* work / filter IP addresses in the header? Is it not properly formed or what? Thx, D.A. ka38o0dpgmfaeptkf6hsobtajqd46sk9b9@4ax.com, D.A. <w7dah-NewsGrps6641@mailblocks.com>: > Why doesn't the following expression > > *200.[0-9].[0-9].[0-9]* > > work / filter IP addresses in the header? > Is it not properly formed or what? [0-9] only matches a single digit -- Robert User in front of @ is fake, actual user is: mkarta RobertSA wrote on 30 okt 2004 in comp.mail.pegasus-m...

IP Range filtering
Hello, I'm trying to filter out a specific IP range. I've read http://httpd.apache.org/docs/howto/auth.html#access but I'm not sure how to a do a specific range of addresses such as 172.33.16.1 - 172.33.16.255 I even created a range of IPs in OpenOffice with a , at the end of each number but thats not working either. Help, I'm desperate! rnix@prometheon.net (rnix@prometheon.net) writes: > I'm trying to filter out a specific IP range. I've read > http://httpd.apache.org/docs/howto/auth.html#access but I'm not sure > how to a do a specific...

Web resources about - Regular Expression filter on IP address range - comp.pegasus-mail.windows

Expression (sign language) - Wikipedia, the free encyclopedia
Signs with two different expressions. The pursed lips and partly closed eyes on the left, and raised lip on the right, are necessary for proper ...

Fighting abuse to protect freedom of expression
We believe that protection from abuse and harassment is a vital part of empowering people to freely express themselves on Twitter. Today, as ...

Campus no longer safe place for freedom of expression says free speech advocate
A group representing free speech in Canada says universities are no longer safe places for free expression, instead shying away from being forums ...

Apple acquires ‘Emotient’ facial expression & emotion detection technology
The Wall Street Journal reports Apple has confirmed it has made an acquisition of artificial intelligence startup Emotient . The cloud-based ...

Turkey setting ‘poor example’ for freedom of expression: Biden
Turkey setting ‘poor example’ for freedom of expression: Biden

Facial Expressions and Tail Expressions
Submitted by: (via Daniel J Farrell ) Tagged: dogs , face , expression , tail , wag Share on Facebook

How One Conservative’s Lost Twitter Badge Spells Trouble For Free Expression
How One Conservative’s Lost Twitter Badge Spells Trouble For Free Expression

Disney's FaceDirector changes facial expressions in movies
The new tool out of Disney Research's labs could turn an ing&eacute;nue's semi-decent attempt into a finely nuanced performance. This software ...

Leonardo DiCaprio Reacts to Lady Gaga's Golden Globes Win See His Hilarious Expression!
Leonardo DiCaprio Reacts to Lady Gaga's Golden Globes Win See His Hilarious Expression!

US: Joe Biden slams Turkey for ‘poor example’ of freedom of expression
US Vice President Joe Biden has criticised Turkey for “setting a poor example” in the region concerning freedom of expression. The damning comments ...

Resources last updated: 1/27/2016 4:48:23 PM