🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #252099

Re: [Xnews] need regex for problem posts - please read

#252099
From: Evertjan.
Date: Sun, 25 Nov 2012 19:08
26 lines
1702 bytes
Ted S. wrote on 24 nov 2012 in news.software.readers:

> On 24 Nov 2012 17:59:15 GMT, Bert wrote:
> 
>> Something like
>> 
>> ^[^ \.\[\]@-]{20,}
> 
> I think the space needs to be escaped with a special character, \s.

No, \s is "whitespace", a collection of spacelike characters.

The single space inside a [^ ] is perfectly usable.

btw the inside [ does not need to be escaped.

===================

If you only want to exclude whitespace in the first 20 chars, try:

^\S{20,}

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Technical Details
Message-ID: <XnsA116CCDE2BC51eejj99@194.109.133.133>
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!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail
References: <XnsA11562F60E08Cbookwight@216.151.153.169> <XnsA11579F1F8A7FVeebleFetzer@216.250.188.141> <9hd3vfn4q12t.dlg@justacineast.motzarella.org>

Show Full Headers
Complete Article Headers
Message-ID: <XnsA116CCDE2BC51eejj99@194.109.133.133>
Subject: Re: [Xnews] need regex for problem posts - please read
Date: Sun, 25 Nov 2012 20:08:21 +0100
From: "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References: <XnsA11562F60E08Cbookwight@216.151.153.169> <XnsA11579F1F8A7FVeebleFetzer@216.250.188.141> <9hd3vfn4q12t.dlg@justacineast.motzarella.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!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/2009.05.01
Lines: 26
NNTP-Posting-Host: 188.142.36.213
X-Trace: 1353870502 dreader36.news.xs4all.nl 3187 ehannivo/188.142.36.213:62661
X-Original-Bytes: 1440