Article View: news.software.readers
Article #242946Re: [Xnews] Looking for regex help - 20 CAPITAL letters in subject header?
From: Mike Yetto
Date: Thu, 07 Oct 2010 12:00
Date: Thu, 07 Oct 2010 12:00
63 lines
3692 bytes
3692 bytes
John Wunderlich <jwunderlich@lycos.com> writes and having writ moves on.
>BookWight <Bookwight@publicspam.com> wrote in
>news:Xns9E09787B021D7bookwight@207.246.207.169:
>> Wandering along the edges of news.software.readers, I found the
>> following bit of electronic flotsam written by Mike Yetto
>> <myetto1@nycap.invalid> in
>> news:slrn20101006130015.371.twooffive@may.eternal-september.org:
>>
>>> BookWight <Bookwight@publicspam.com> writes and having writ moves
>>> on.
>>>> Wandering along the edges of news.software.readers, I found the
>>>> following bit of electronic flotsam written by Mike Yetto
>>>> <myetto1@nycap.invalid> in
>>>> news:slrn20101002104951.499.twooffive@may.eternal-september.org:
>>>
>>>> as before, all helpful comments welcome.
>>>
>>> I gave this some more thought and decided that the example I gave
>>> would catch everyone of your examples had I used the correct
>>> syntax.
>>>
>>>
>>> This will catch any subject with 20 or more uppercase characters.
>>>
>>> #v+
>>> [*]
>>> Score: =-9999
>>> Subject:= ([A-Z][^A-Z]*){20} #v-
>>>
>>> Mike "tweak to taste" Yetto
>>
>> mike -
>>
>> I tried editing the score file with your offered expression, but
>> got the 2 following errors:
>>
>> 1. Perle: Nothing to repeat
>>
>> 2. Invalid group expression "]" at line 6
>>
>>
>> I counted the number of left & right (parantheses, brackets, curly
>> brackets) rather carefully . . .
>>
>> I (rather cautiously) invite comments
>Hmmm...
>If I leave out the "#v+" and "#v-" in the above and fixing the error
>where it should be "Subject=" instead of "Subject:="
So, the part I tested with grep worked just fine, but something
I added for the score file screwed it up.
>...It works just great for me.
>Tested in alt.test.
Thanks for that.
Mike "I should stop when I'm done" Yetto
--
In theory, theory and practice are the same.
In practice they are not.
Technical Details
Message-ID:
<slrn20101007075730.24.twooffive@may.eternal-september.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!aioe.org!not-for-mailReferences:
<Xns9E0350120FCD5bookwight@207.246.207.159> <Xns9E03730466944VeebleFetzer@216.250.188.141> <slrn20100930130743.632.twooffive@may.eternal-september.org> <hzp2g19rrxa3$.1qs9z2e0o64o9.dlg@40tude.net> <slrn20100930182657.380.twooffive@may.eternal-september.org> <eby8yvz4ebfg$.12vrytnc6gfn6$.dlg@40tude.net> <slrn20101001075806.483.twooffive@may.eternal-september.org> <l8kj04nq5y89.p0vk321749dn$.dlg@40tude.net> <slrn20101002104951.499.twooffive@may.eternal-september.org> <Xns9E07862949254bookwight@207.246.207.168> <slrn20101006130015.371.twooffive@may.eternal-september.org> <Xns9E09787B021D7bookwight@207.246.207.169> <Xns9E09A845967E7wunderpsdrscray@138.125.254.103>Show Full Headers
Complete Article Headers
Message-ID: <slrn20101007075730.24.twooffive@may.eternal-september.org> Subject: Re: [Xnews] Looking for regex help - 20 CAPITAL letters in subject header? Date: Thu, 07 Oct 2010 08:00:01 -0400 From: Mike Yetto <myetto1@nycap.invalid> References: <Xns9E0350120FCD5bookwight@207.246.207.159> <Xns9E03730466944VeebleFetzer@216.250.188.141> <slrn20100930130743.632.twooffive@may.eternal-september.org> <hzp2g19rrxa3$.1qs9z2e0o64o9.dlg@40tude.net> <slrn20100930182657.380.twooffive@may.eternal-september.org> <eby8yvz4ebfg$.12vrytnc6gfn6$.dlg@40tude.net> <slrn20101001075806.483.twooffive@may.eternal-september.org> <l8kj04nq5y89.p0vk321749dn$.dlg@40tude.net> <slrn20101002104951.499.twooffive@may.eternal-september.org> <Xns9E07862949254bookwight@207.246.207.168> <slrn20101006130015.371.twooffive@may.eternal-september.org> <Xns9E09787B021D7bookwight@207.246.207.169> <Xns9E09A845967E7wunderpsdrscray@138.125.254.103> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!aioe.org!not-for-mail Newsgroups: news.software.readers Organization: slrn Mafia / Xnews Tong (emeritus) Lines: 63 NNTP-Posting-Host: TijAryxU+JWp3W418IVzuQ.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-No-Bananas: Yes Cancel-Lock: sha1:B64dj44o1fxOCryccCie+BYCXKY= User-Agent: slrn/pre1.0.0-24/co (Kubuntu 10.04; 64bit) X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/