Article View: news.software.readers
Article #255203Re: asking for more help on regex for Xnews
From: Mike Yetto
Date: Fri, 12 Jul 2013 20:14
Date: Fri, 12 Jul 2013 20:14
31 lines
2323 bytes
2323 bytes
In a world where BookWight <Bookwight@publicspam.com>
posts to Usenet.
> Hi -
Ah, back with more scoring questions. Let us again cry pcre and
let loose the hounds of regex.
> Recently, I've had a bunch of headers which look like this:
> 54c689ee-dd51-5290-a931-96e31a2f120d [204/212] - "54c689ee-dd51-5290-a931-
> 96e31a2f120d.vol332+13.par2" yEnc (001/105)
> (all on one line, naturally)
> I'd like an expression that catchs a string of 20 or more lowercase or
> digits with zero or more dashes
This is something to start with, assuming the alpha characters
are part of a hexadecimal value and located in the Subject:.
#v+
Subject: [1234567890abcdef-]{20,}
#v-
This will trigger on 20 or more of the listed characters and
might be what you are looking for.
Mike "let the tweaking begin" Yetto
--
In theory, theory and practice are the same.
In practice they are not.
Technical Details
Message-ID:
<slrn20130712155504.987.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.bbs-scene.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!may.eternal-september.org!.POSTED!not-for-mailReferences:
<XnsA1FB72E6DEA49bookwight@216.151.153.169>Show Full Headers
Complete Article Headers
Message-ID: <slrn20130712155504.987.twooffive@may.eternal-september.org> Subject: Re: asking for more help on regex for Xnews Date: Fri, 12 Jul 2013 16:14:53 -0400 From: Mike Yetto <myetto1@nycap.invalid> References: <XnsA1FB72E6DEA49bookwight@216.151.153.169> 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.bbs-scene.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!may.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: slrn Mafia / Xnews Tong (emeritus) Lines: 31 Injection-Info: may.eternal-september.org; posting-host="8f28f292bb3c17954cd3e2591a175da1"; logging-data="22544"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+F8THglhHDnH4sSbKAB3PYmFHNU8kbySo=" User-Agent: slrn/pre1.0.2-8 (Linux) X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/ X-No-Bananas: Yes (except Ray) Cancel-Lock: sha1:Qv7s0TS3Y3ahWQ90kprqVAD1n9I= sha1:RxeCvFcFRDpIxS+rpvnAtOIKG/k= X-Original-Bytes: 2103