Thread View: news.software.readers
3 messages
3 total messages
Started by The Tools
Tue, 21 Jan 1997 00:00
Gravity rule question - "contains phrase"
Author: The Tools
Date: Tue, 21 Jan 1997 00:00
Date: Tue, 21 Jan 1997 00:00
27 lines
1200 bytes
1200 bytes
I'd like to have Gravity discard articles with these subjects: test this is a test testing etc. But I don't want to discard articles with, for example, these subjects: automated testing did you test it first? In short, I want to specify that the phrase I've entered is the whole subject (or what follows "Re:"), and not a substring. I'd like to specify "article subject (is|is not)" rather than "article subject (does|does not) contain". Is there any way to indicate that a regular expression represents the whole subject, and not a substring of the subject? Please post responses here. -- to reply via email, remove "oink-" from my return address
Re: Gravity rule question - "contains phrase"
Author: The Tools
Date: Wed, 22 Jan 1997 00:00
Date: Wed, 22 Jan 1997 00:00
19 lines
1252 bytes
1252 bytes
marwan@microplanet.com says...
> > Is there any way to indicate that a regular expression represents the
> > whole subject, and not a substring of the subject?
> So, the regular expression "<0>test<~0>" will match only the subject
> "test". Then, you can use the "(", ")", and "|" characters to combine
> multiple subjects you're looking for, e.g., "(<0>test<~0>|<0>this is a
> test<~0>)", etc.
Thanks. I have found the following to be effective at getting rid of test
posts:
<0>(re:){0,1} *(this is( a){0,1} ){0,1}test((ing)|( message)|( post)){0,1}
*[0-9]*<~0>
--
to reply via email, remove "oink-" from my return address
Re: Gravity rule question - "contains phrase"
Author: Marwan Shaban
Date: Wed, 22 Jan 1997 00:00
Date: Wed, 22 Jan 1997 00:00
43 lines
1780 bytes
1780 bytes
In article <MPG.d4ee1f84a9032d7989684@news>, thetools@oink-concentric.net
says...
> I'd like to have Gravity discard articles with these subjects:
>
> test
> this is a test
> testing
> etc.
>
> But I don't want to discard articles with, for example, these subjects:
>
> automated testing
> did you test it first?
>
> In short, I want to specify that the phrase I've entered is the whole
> subject (or what follows "Re:"), and not a substring. I'd like to specify
> "article subject (is|is not)" rather than "article subject (does|does not)
> contain".
>
> Is there any way to indicate that a regular expression represents the
> whole subject, and not a substring of the subject?
>
> Please post responses here.
From the Gravity help file:
<0> is an RE that matches the null string at position 0, the beginning
of the string.
<~0> matches the null string at the end of the string.
So, the regular expression "<0>test<~0>" will match only the subject
"test". Then, you can use the "(", ")", and "|" characters to combine
multiple subjects you're looking for, e.g., "(<0>test<~0>|<0>this is a
test<~0>)", etc.
--
Marwan Shaban
marwan@microplanet.com
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