Thread View: news.software.readers
6 messages
6 total messages
Started by Frederick Page
Sun, 04 Apr 1999 00:00
RegExp-Question (tin)
Author: Frederick Page
Date: Sun, 04 Apr 1999 00:00
Date: Sun, 04 Apr 1999 00:00
27 lines
1268 bytes
1268 bytes
Hi all,
I am using tin pre-1.4 release 19990216 ("Styrofoam") and wish to
score subjects, that contain no lowercase letters. The regexp should
"catch" subjects like
YOU GOTTA READ DIZ
TEST
IMPORTANT !!!
etc., etc.
It should not "catch" subjects like
DVD for sale
Born in the USA
I miserably failed with subj=[^a-z] because that one caught almost
everything *but* the wanted subjects :-(
Anybody?
TIA Frederick
--
How does Mommy know, her daughter's on her period?
Her son's dick tastes funny.
Re: RegExp-Question (tin)
Author: Paul colclough
Date: Sun, 04 Apr 1999 00:00
Date: Sun, 04 Apr 1999 00:00
21 lines
1260 bytes
1260 bytes
On 4 Apr 1999 05:44:54 +0200, Frederick Page <Kitoholic@bigfoot.com>
wrote:
>I am using tin pre-1.4 release 19990216 ("Styrofoam") and wish to
>score subjects, that contain no lowercase letters. The regexp should
>"catch" subjects like
>YOU GOTTA READ DIZ
>TEST
>IMPORTANT !!!
>etc., etc.
Not sure how TIN works, but you can do it quite easily in XNews, which
also uses RegExp:
~Subject= .*[a-z]
This catches all subjects which are lowercase only, the ~ at the start
of subject reverses it (NOT operator) to "score all articles which are
uppercase only".
Re: RegExp-Question (tin)
Author: Frederick Page
Date: Sun, 04 Apr 1999 00:00
Date: Sun, 04 Apr 1999 00:00
35 lines
1894 bytes
1894 bytes
Hi Paul, you wrote on Sun, 04 Apr 1999 09:56:50 GMT: >Not sure how TIN works, but you can do it quite easily in XNews, which >also uses RegExp: >~Subject= .*[a-z] >This catches all subjects which are lowercase only, the ~ at the start >of subject reverses it (NOT operator) to "score all articles which are >uppercase only". Hm, let's recap: the period catches any single character, the asterisk means, that the preceding (single character) will be matched zero or more times. The [a-z] is a list of all lowercase-characters. So the regexp .*[a-z] should catch any number (including zero) of single characters *plus* at least one lowercase-character. So the subject needs to have at least one lower-case char within any number of other chars. Exactly what I want, thank you. But I still can't get it to work with tin :-( because I am not able to negate the above mentioned regexp. Anyway: thanks for your help! Kind regards Frederick -- What's grosser than gross? Sticking 12 oysters up your girl's cunt and sucking 13 out!
Re: RegExp-Question (tin)
Author: Ralf Döblitz
Date: Sun, 04 Apr 1999 00:00
Date: Sun, 04 Apr 1999 00:00
32 lines
1723 bytes
1723 bytes
Frederick Page <Kitoholic@bigfoot.com> wrote:
>Hi all,
>
>I am using tin pre-1.4 release 19990216 ("Styrofoam") and wish to
>score subjects, that contain no lowercase letters. The regexp should
>"catch" subjects like
The easiest way to get this behaviour ist to use two filters: one to set
a negative score for all articles and one to neutralize this for
articles that have lowercase letters in the Subject:.
#####
group=*
type=0
case=0
score=kill
subj=.
#####
group=*
type=1
case=0
score=hot
subj=[a-z]
#####
Ralf
--
Ralf D�blitz * Schapenstr. 6 * 38104 Braunschweig * Germany
Phone: +49-531-2361223 Fax: +49-531-2361224 mailto:doeblitz@gmx.de
Homepage: http://www.escape.de/users/selene/
Re: RegExp-Question (tin)
Author: Frederick Page
Date: Mon, 05 Apr 1999 00:00
Date: Mon, 05 Apr 1999 00:00
21 lines
1502 bytes
1502 bytes
Hi Ralf,
you wrote on 04 Apr 1999 20:31:54 +0200:
>>I am using tin pre-1.4 release 19990216 ("Styrofoam") and wish to
>>score subjects, that contain no lowercase letters.
>The easiest way to get this behaviour ist to use two filters: one to
>set a negative score for all articles and one to neutralize this for
>articles that have lowercase letters in the Subject:.
Wow! Thank you very much. I was stuck on the thought, that I had to do
it within one filter, but obviously, there is no need for that.
Kind regards Frederick
--
Did you hear about the banker who's a great lover?
He knows first-hand the penalty for early withdrawal.
Re: RegExp-Question (tin)
Author: Frederick Page
Date: Wed, 07 Apr 1999 00:00
Date: Wed, 07 Apr 1999 00:00
21 lines
1155 bytes
1155 bytes
Hi Urs, you wrote on 4 Apr 1999 23:58:38 GMT: >group=* >type=0 >case=0 >score=kill >subj=^[^a-z]+$ Thanks to you too, I really appreciate your help. Kind regards Frederick -- Definition of ultimate fun? Having sex with a pregnant woman and the feutus giving you head.
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