Thread View: news.software.readers
2 messages
2 total messages
Started by Ross Presser
Wed, 23 Aug 2000 00:00
Re: [Xnews] group-based settings SortOn and PCRE styles
Author: Ross Presser
Date: Wed, 23 Aug 2000 00:00
Date: Wed, 23 Aug 2000 00:00
47 lines
2013 bytes
2013 bytes
alt.distinguished.eaglestorm@vene.dave.it
(EagleStorm).wrote.posted.offered:
>About Group-Based Settings and SortOn.
>
>How does SortOn work? It seems to work with boolean values, 0
>ascending and 1 descending, but this is not.
>
>
>Another question...
>Could someone suggest me how to filter out any subject with all the
word
>chars in uppercase format? I've some difficulties...
>
>% Indeed, for "Subject: HELP" I can use...
> score:: -9999
> ~subject: (?-i)[a-z]
>
>...but for these types of subject?
> Re: HELP
> Re: Aw: Aw: Aw: Aw: HELP"
> Aw: HELP
> Aw: AW: HELP
>
>Yes, repetitions are not my strong point :-)
>
Try
Score: -9999
Subject: ^(Re: |Aw: |Sv: )*[A-Z ]+$
That matches zero or more repetitions of any combination of "Re: ",
"Aw: ", or "Sv: ", followed by one or more capital letters or spaces,
anchored at both beginning and ending of the subject line.
If you need to match other Re: type prefixes, such as RE:, add them
inside the parentheses. Remember to include the colon and/or spaces,
and separate re: alternatives by vertical bars.
--
Ross Presser * ross_presser@imtek.com
A blank is ya know, like, a tab or a space. A name is like wow! a
sequence of ASCII letters, oh, baby, digits, like, or underscores,
fer shure, beginnin' with a letter or an underscore.
Re: [Xnews] group-based settings SortOn and PCRE styles
Author: Tom B.
Date: Thu, 24 Aug 2000 00:20
Date: Thu, 24 Aug 2000 00:20
23 lines
1723 bytes
1723 bytes
eaglestorm@vene.dave.it posted ... > Now, this seems the nearest approximation > > Score: -9999 > Subject: (?-i)^(Re: |Aw: |Sv: |R: )*([A-Z]|[\W*])+$ > > [\W] is necessary for subject like "HELP!!!" > (?-i) appears essential > > Contrary directions? :-) (maybe I've forgotten the underscore which is > not filtered out) I don't use XN but with perl-compatible expressions you can catch all of this stuff by looking for everything NOT lower case with something like ... ^(Re: |Aw: |Sv: |R: )*[^a-z]+$ -- Tom B. * * * Gravity Pages * * * http://www.naplesfl.net/~tbates/gravity/
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