Thread View: news.software.readers
9 messages
9 total messages
Started by Alan Ford
Wed, 17 Sep 2003 20:42
Re: [Xnews] Regex for newsgroups
Author: Alan Ford
Date: Wed, 17 Sep 2003 20:42
Date: Wed, 17 Sep 2003 20:42
19 lines
1624 bytes
1624 bytes
Di /mercoled�, 17 settembre 2003/, *Hiram Walker* ha scritto:
> Is it possible to have a regex expression for use in groups.ini
> which will select the follwing groups:
>
> AAA or BBB or CCC but not AAA.XXX
Try this:
[AAA(?!\56XXX)|BBB|CCC]
Bye.
X-No-Archive: no
--
/ _ _ | Xnews in italiano e Guida ai Menu
( (/( (/ | http://digilander.libero.it/xnews
Re: [Xnews] Regex for newsgroups
Author: Alan Ford
Date: Wed, 17 Sep 2003 22:10
Date: Wed, 17 Sep 2003 22:10
24 lines
1942 bytes
1942 bytes
Di /mercoled�, 17 settembre 2003/, *Hiram Walker* ha scritto:
>>> Is it possible to have a regex expression for use in groups.ini
>>> which will select the follwing groups:
>>>
>>> AAA or BBB or CCC but not AAA.XXX
>>
>> Try this:
>>
>> [AAA(?!\56XXX)|BBB|CCC]
>
>
> Can you explain the non-letter character please.
. (point - dot) -> DEC (46) -> HEX (2E) -> OCTAL (56)
^^^^^^^^^^
Bye.
X-No-Archive: no
--
/ _ _ | Xnews in italiano e Guida ai Menu
( (/( (/ | http://digilander.libero.it/xnews
Re: [Xnews] Regex for newsgroups
Author: »Q«
Date: Thu, 18 Sep 2003 00:43
Date: Thu, 18 Sep 2003 00:43
29 lines
2185 bytes
2185 bytes
Alan Ford <xnews@libero.it> wrote in <news:Xns93FA1D40903Elucatinit@
127.0.0.1>:
>>>> Is it possible to have a regex expression for use in groups.ini
>>>> which will select the follwing groups:
>>>>
>>>> AAA or BBB or CCC but not AAA.XXX
>>>
>>> Try this:
>>>
>>> [AAA(?!\56XXX)|BBB|CCC]
>>
>>
>> Can you explain the non-letter character please.
>
> . (point - dot) -> DEC (46) -> HEX (2E) -> OCTAL (56)
> ^^^^^^^^^^
Is this necessary within the negative lookahead? Would (?!\.XXX) not
work just as well? And if not, why not?
Man those questions look terse, but I'm just askin', you know. ;)
--
�Q�
"KEEP BIG BROTHER'S HANDS OFF THE INTERNET"
By Senator John Ashcroft
<http://usinfo.state.gov/journals/itgic/1097/ijge/gj-7.htm>
Re: [Xnews] Regex for newsgroups
Author: Alan Ford
Date: Thu, 18 Sep 2003 07:54
Date: Thu, 18 Sep 2003 07:54
20 lines
2041 bytes
2041 bytes
Di /gioved�, 18 settembre 2003/, *�Q�* ha scritto: >>> Can you explain the non-letter character please. >> >> . (point - dot) -> DEC (46) -> HEX (2E) -> OCTAL (56) >> ^^^^^^^^^^ > > Is this necessary within the negative lookahead? Would (?!\.XXX) not > work just as well? And if not, why not? Theoretically yes, is the same. But in the past i got trouble with Hamster, so i prefer use \56 ^___^ Bye (excuse me for my poor english) :o/ -- / _ _ | Xnews in italiano e Guida ai Menu ( (/( (/ | http://digilander.libero.it/xnews
Re: [Xnews] Regex for newsgroups
Author: »Q«
Date: Thu, 18 Sep 2003 13:40
Date: Thu, 18 Sep 2003 13:40
29 lines
2257 bytes
2257 bytes
Alan Ford <xnews@libero.it> wrote in
<news:Xns3EB7C71C9A227lucatinit@127.0.0.2>:
>>>> Can you explain the non-letter character please.
>>>
>>> . (point - dot) -> DEC (46) -> HEX (2E) -> OCTAL (56) ^^^^^^^^^^
>>
>> Is this necessary within the negative lookahead? Would (?!\.XXX)
>> not work just as well? And if not, why not?
>
> Theoretically yes, is the same.
>
> But in the past i got trouble with Hamster, so i prefer use \56
> ^___^
Ah, thanks. I also use Hamster, so I will try to remember this if I
run into any trouble.
> Bye (excuse me for my poor english) :o/
Your communication is fine. If I had to attempt discussion of regex in
Italian, my head would explode. :-O
--
�Q�
"KEEP BIG BROTHER'S HANDS OFF THE INTERNET"
By Senator John Ashcroft
<http://usinfo.state.gov/journals/itgic/1097/ijge/gj-7.htm>
Re: [Xnews] Regex for newsgroups
Author: »Q«
Date: Thu, 18 Sep 2003 14:21
Date: Thu, 18 Sep 2003 14:21
40 lines
2468 bytes
2468 bytes
Hiram Walker <hirram@mail.com> wrote in
<news:93FA521FC58EE7AF39@194.168.222.40>:
>>>>> Is it possible to have a regex expression for use in
>>>>> groups.ini which will select the follwing groups:
>>>>>
>>>>> AAA or BBB or CCC but not AAA.XXX
>>>>
>>>> Try this:
>>>>
>>>> [AAA(?!\56XXX)|BBB|CCC]
>>>
>>>
>>> Can you explain the non-letter character please.
>>
>> . (point - dot) -> DEC (46) -> HEX (2E) -> OCTAL (56)
>> ^^^^^^^^^^
>> Bye.
>
>
> I tried this but it does not work. :-(
>
> I find that the AAA group is not picked up at all by that
> expression.
>
> Can anyone else make this work?
It works here as Alan wrote it. If there is an earlier section in
your scorefile which applies to AAA, put continue=1 at the end of it.
You might also try
[AAA$|BBB|CCC]
--
�Q�
"KEEP BIG BROTHER'S HANDS OFF THE INTERNET"
By Senator John Ashcroft
<http://usinfo.state.gov/journals/itgic/1097/ijge/gj-7.htm>
Re: [Xnews] Regex for newsgroups
Author: Alan Ford
Date: Thu, 18 Sep 2003 20:12
Date: Thu, 18 Sep 2003 20:12
38 lines
2401 bytes
2401 bytes
Di /gioved�, 18 settembre 2003/, *�Q�* ha scritto:
> I also use Hamster, so I will try to remember this if I run into
> any trouble.
I love Hamster :O)
I use it for NG (storage) and mail (filter).
>> (excuse me for my poor english) :o/
>
> Your communication is fine. If I had to attempt discussion of
> regex in Italian, my head would explode. :-O
LOL! The PCRE language is universal...
But some regex are very difficult... In my *mailfilt.hst* i have this
(don't ask me to explain, please :O):
kill() To: {(?s)(@[^,]+,)(.*\1){4,}}
that instead is mine (and other friends of "hamster.it.misc"):
kill() TOP: {name\s?=.+\.(bat|com|exe|hta|lnk|pif|scr|shs|vbs)(?!\56)}
for dangerous attachments...
Bye (and many thank's for help and patience).
P.S. ...from [New Orleans, LA, US] ?
Are you under threat of Isabel ? :((
(I hope for NO)
--
/ _ _ | Xnews in italiano e Guida ai Menu
( (/( (/ | http://digilander.libero.it/xnews
Re: [Xnews] Regex for newsgroups
Author: »Q«
Date: Fri, 19 Sep 2003 03:45
Date: Fri, 19 Sep 2003 03:45
65 lines
3446 bytes
3446 bytes
Alan Ford <xnews@libero.it> wrote in
<news:Xns93FAE1FF82C57lucatinit@127.0.0.1>:
> Di /gioved�, 18 settembre 2003/, *�Q�* ha scritto:
>
>> I also use Hamster, so I will try to remember this if I run into
>> any trouble.
>
> I love Hamster :O)
>
> I use it for NG (storage) and mail (filter).
I use it for NG storage the same way (and a bit of filtering on
articles I am absolutely sure I will never want to see) and to pull
all my mail accounts into one inbox. I tend to filter in my clients
rather than Hamster, but I may change my ways now that these
explosions of self-mailing worms seem more frequent.
>>> (excuse me for my poor english) :o/
>>
>> Your communication is fine. If I had to attempt discussion of
>> regex in Italian, my head would explode. :-O
>
> LOL! The PCRE language is universal...
And Hamster and Xnews both use Luu Tran's port of PCRE for
Windows. :)
> But some regex are very difficult... In my *mailfilt.hst* i have
> this (don't ask me to explain, please :O):
>
> kill() To: {(?s)(@[^,]+,)(.*\1){4,}}
Oh my! I will take a closer look at this one when I am better
rested.
> that instead is mine (and other friends of "hamster.it.misc"):
>
> kill() TOP:
> {name\s?=.+\.(bat|com|exe|hta|lnk|pif|scr|shs|vbs)(?!\56)}
>
> for dangerous attachments...
Excellent! That is exactly what I need to get rid of most of the
mailer worms.
> Bye (and many thank's for help and patience).
>
> P.S. ...from [New Orleans, LA, US] ?
Yep.
> Are you under threat of Isabel ? :((
> (I hope for NO)
Thankfully for New Orleans, no. It hit the East Coast rather than
the Gulf Coast. So far this year we have only had tropical storms,
no hurricanes.
--
�Q�
"KEEP BIG BROTHER'S HANDS OFF THE INTERNET"
By Senator John Ashcroft
<http://usinfo.state.gov/journals/itgic/1097/ijge/gj-7.htm>
Re: [Xnews] Regex for newsgroups
Author: Alan Ford
Date: Fri, 19 Sep 2003 07:47
Date: Fri, 19 Sep 2003 07:47
35 lines
2434 bytes
2434 bytes
Di /venerd�, 19 settembre 2003/, *�Q�* ha scritto:
>> that instead is mine (and other friends of "hamster.it.misc"):
>>
>> kill() TOP:
>> {name\s?=.+\.(bat|com|exe|hta|lnk|pif|scr|shs|vbs)(?!\56)}
>>
>> for dangerous attachments...
>
> Excellent! That is exactly what I need to get rid of most of the
> mailer worms.
If you use it, put in *Hamster.ini*, [Setup] section, the following
line:
mail.filter.toplines=100
(or more).
Another rule for the same purpose:
kill() TOP: "TVqQAAMA"
>> P.S. ...from [New Orleans, LA, US] ?
>
> Yep.
I'm from Ravenna, near Rimini (or Venezia). ;o)
Bye.
--
/ _ _ | Xnews in italiano e Guida ai Menu
( (/( (/ | http://digilander.libero.it/xnews
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads