🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #253400

Re: Regex help

#253400
From: Mike Yetto
Date: Tue, 19 Feb 2013 12:52
37 lines
2625 bytes
In a world where Mike Dee <mikedee@emteedee.invalid>
posts to Usenet.
>Ted S. wrote:

>> <snip>
>> -1128 References
>> {Jeff-Relf.Me\@[a-z]{3}.\d{1,2}[({]\d{1,2}.\d{1,2}.[ap]m.seattle.\d
>> (4)[)}]>$}
>> </snip>
>> 
>> isn't killing a post whose References: header ends with:
>> 
>> <Jeff-Relf.Me@Feb.17{2.38.PM.Seattle.2013}>
>> 
>> What am I doing wrong?
>> 
>> God damn fucking Jeff Relf keeps changing the format of his M-IDs

>Is Relf still around? ;-) its been a while since I saw one of his 
>posts.

>Its as Mike Yetto says, try your regex on Jeff.Relf, alone. Looking 
>for an entire M-ID here, is overkill and less efficient than scoring 
>on whats necessary.

>The period "." between Jeff & Relf matches any character, I'm 
>assuming it would be the same in 40tude Dialog.

My score entry for Relf-ups (yeah, too cute) looks for
/Jeff.?Relf/ in the References. The question mark makes the "any"
character optional (ie. zero or one of any character.)

Mike "tweaking for Dialog is an exercise for the reader" Yetto
-- 
"Skeptical scrutiny is the means, in both science and religion,
by which deep thoughts can be winnowed from deep nonsense"
  - Carl Sagan
Technical Details
Message-ID: <slrn20130219074707.319.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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!may.eternal-september.org!.POSTED!not-for-mail
References: <1s4nf483imh7h.dlg@justacineast.motzarella.org> <XnsA16C9D06E590mikedee@emteedee.invalid>

Show Full Headers
Complete Article Headers
Message-ID: <slrn20130219074707.319.twooffive@may.eternal-september.org>
Subject: Re: Regex help
Date: Tue, 19 Feb 2013 07:52:08 -0500
From: Mike Yetto <myetto1@nycap.invalid>
References: <1s4nf483imh7h.dlg@justacineast.motzarella.org> <XnsA16C9D06E590mikedee@emteedee.invalid>
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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!may.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: slrn Mafia / Xnews Tong (emeritus)
Lines: 37
Injection-Info: may.eternal-september.org;
 posting-host="8f28f292bb3c17954cd3e2591a175da1";
 logging-data="25545"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX1/snXlDZ18KDPq3Z94iJlFUaybiVHJQQb4="
User-Agent: slrn/1.0.1 (Linux)
X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/
X-No-Bananas: Yes (except Ray)
Cancel-Lock: sha1:3Peu1MxyK2oCws1RzH5QK7/pSBY=
 sha1:yJ3nA1yxHrAok/MvapU4aUMInj4=
X-Original-Bytes: 2404