Article View: news.software.nntp
Article #84103Re: Cleanfeed: Looking for regex expression for ....
From: D. Stussy
Date: Fri, 03 Jun 2011 21:17
Date: Fri, 03 Jun 2011 21:17
30 lines
2691 bytes
2691 bytes
"Steve Crook" <steve@mixmin.net> wrote in message news:slrniuhctk.47d.steve@news.mixmin.net... > On Thu, 2 Jun 2011 17:34:42 -0700, D. Stussy wrote in > Message-Id: <is9a68$u9p$1@snarked.org>: > > > My primary questions for posting my regex expression: > > 1) Does it do what I think it should? > Yes, providing you escape the @, so: /^[^\@:]*$/ Needing to escape the "@" escaped me! Fixing... ;-) > > 2) Does it reject something that is valid per the RFCs/standards? > Not that I can think of. It will allow some non-compliance but doesn't > reject good stuff. I figured that other rules and expressions will catch other bad stuff. I just wanted to make certain that this wasn't catching something that it shouldn't. <Junior> wrote in message news:201106031153.UTC.isai05$7qr$2@tioat.net... > That regex is looking for an email *or* URL? By specifying both "@" and ":", yes, I am looking for either a mailbox address or a URL that contains a scheme component. However, technically, this is being applied to fields where ONLY mailboxes are permitted. I'm being nice in permitting URLs too (and where they technically are not permitted).
Technical Details
Message-ID:
<isbj0q$3uc$1@snarked.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-transit.tcx.org.uk!tr22g12.aset.psu.edu!usenet.stanford.edu!newsfeed.news.ucla.edu!news.snarked.org!pool-71-106-211-51.lsanca.dsl-w.verizon.net!not-for-mailReferences:
<is3slt$d30$1@snarked.org> <is6l88$nq1$1@snarked.org> <201106020848.UTC.is7iou$dop$1@tioat.net> <slrniueqnk.47d.steve@news.mixmin.net> <is9a68$u9p$1@snarked.org> <slrniuhctk.47d.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <isbj0q$3uc$1@snarked.org> Subject: Re: Cleanfeed: Looking for regex expression for .... Date: Fri, 3 Jun 2011 14:17:39 -0700 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <is3slt$d30$1@snarked.org> <is6l88$nq1$1@snarked.org> <201106020848.UTC.is7iou$dop$1@tioat.net> <slrniueqnk.47d.steve@news.mixmin.net> <is9a68$u9p$1@snarked.org> <slrniuhctk.47d.steve@news.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-transit.tcx.org.uk!tr22g12.aset.psu.edu!usenet.stanford.edu!newsfeed.news.ucla.edu!news.snarked.org!pool-71-106-211-51.lsanca.dsl-w.verizon.net!not-for-mail Newsgroups: news.software.nntp,news.admin.net-abuse.usenet Lines: 30 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> Injection-Date: Fri, 3 Jun 2011 21:17:14 +0000 (UTC) Injection-Info: snarked.org; posting-host="pool-71-106-211-51.lsanca.dsl-w.verizon.net:71.106.211.51"; logging-data="4044"; mail-complaints-to="newsmaster+complaints@snarked.org" X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Original-Bytes: 2407