Article View: news.software.readers
Article #219245Re: Regex to detect long subject lines
From: Steve Hodgson
Date: Mon, 14 Apr 2008 20:37
Date: Mon, 14 Apr 2008 20:37
23 lines
1951 bytes
1951 bytes
On 2008-04-14 20:02:48 +0100, Ed <apostle@REMOVETHISpeculiar.homeip.net> said:
> I've been trying to come up with a regex that will trap overly long subject
> lines but honestly I'm terrible at regular expression syntax
>
> I'd like to be able to trap any message with a subject line more than 60
> characters long
You could start with something like [a-zA-Z0-9;: ]{60,} which will find
a subject line that includes the characters listed between the square
brackets if it is at least 60 characters long. I thought letters,
numbers, spaces and a couple of punctuation characters cover the
majority of subject lines.
Hope this helps.
--
Cheers,
Steve
The reply-to email address is a spam trap.
Email steve 'at' shodgson 'dot' org 'dot' uk
Technical Details
Message-ID:
<66htl0F2kjmmmU1@mid.individual.net>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<Xns9A808EE42A7682362352@127.0.0.1>Show Full Headers
Complete Article Headers
Message-ID: <66htl0F2kjmmmU1@mid.individual.net> Subject: Re: Regex to detect long subject lines Date: Mon, 14 Apr 2008 21:37:52 +0100 From: Steve Hodgson <hamrun@gmail.com> References: <Xns9A808EE42A7682362352@127.0.0.1> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 23 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net DUHhNyQVUhaq+cZHbBXSfAg3KCpO1PZYPOpxLMM/NdfNEVkoyO Cancel-Lock: sha1:GHSuMPoAv8qqZt348AF8RH6DIx8= X-Face: "@Ea^zJbilv.6kyInU2ueOFLtpO; JBv_.,CTv3n="i='uX18\~Pp[}x/0\6O~4<; Keoj(,4n\s'<w4efqQ%~yP[,)k0C<A'?]RJ|; E0jIg!_trr*4\oO6qDr:")L#~@Ax.&j|so`>Cl3\s-7t^n(sU!(BJb|R(zMZ~z}hfW[#mSKtelaqH:YIxM!'lTP## User-Agent: Unison/1.8.1