Article View: news.software.readers
Article #178334Re: [slrn] regexp for scoring indirect replies
From: DC
Date: Thu, 22 Dec 2005 03:24
Date: Thu, 22 Dec 2005 03:24
48 lines
3253 bytes
3253 bytes
Peter J Ross wrote: > On 21 Dec 2005 22:42:06 GMT, DC <dcmoose@myrealbox.com> wrote in > news.software.readers: >> Peter J Ross wrote: >>>> »Q« wrote: ><...> >>>>> I think the greediness of .* will make the <.*> match a bunch of MIDS >>>>> rather than just one at a time. Maybe <[^>]*> will help. ><...> >>> »Q«'s method works for me: >>> Score: 100 >>> Message-Id: pjr@nntp\.petitmorte\.net>$ >>> Score:: 5 >>> References: pjr@nntp\.petitmorte\.net>$ >>> References: pjr@nntp\.petitmorte.net> <[^>]*>$ >>> References: pjr@nntp\.petitmorte.net> <[^>]*> <[^>]*>$ >> Very nice! Thanks, Peter. > Don't thank me. I didn't write "Maybe <[^>]*> will help", »Q« did. How'd I miss that? Thanks, »Q«! >>> This also resolves my struggle to convert html fragments to text >>> without losing chunks of the text. »Q« *rules*! >> What's this about? No need to go into it in detail -- got a M-ID? > I haven't posted about it. Briefly, I downloaded a lot of HTML files. > The HTML is very badly written, so utilities such as html2txt choke on > it. I need to eliminate all the HTML tags (everything between each > pair of "<" and ">", but the greediness of ".*" was eliminating the > text I wanted to keep when I tried stuff like ":%s/<.*>/ /g" in vim. Gotcha. -- DC Linux RU #1000111011000111001 The word 'politics' is derived from the word 'poly', meaning 'many' and the word 'ticks', meaning 'blood sucking parasites'.
Technical Details
Message-ID:
<slrndqk79j.d13.dcmoose@moosemeat.ca.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrndqgcs7.7sq.dcmoose@moosemeat.ca.INVALID> <20051221081048@usenet.piggo.com> <slrndqh787.a9n.dcmoose@moosemeat.ca.INVALID> <MrQ973396311654FitsmeitsQ@QsFQDN.dyndns.org> <slrndqjic7.8k2.dcmoose@moosemeat.ca.INVALID> <slrndqjk5k.fj6.pjr@nntp.petitmorte.net> <slrndqjmnj.c4g.dcmoose@moosemeat.ca.INVALID> <slrndqjo66.fj6.pjr@nntp.petitmorte.net>Show Full Headers
Complete Article Headers
Message-ID: <slrndqk79j.d13.dcmoose@moosemeat.ca.INVALID>
Subject: Re: [slrn] regexp for scoring indirect replies
Date: Thu, 22 Dec 2005 03:24:45 +0000
From: DC <dcmoose@myrealbox.com>
References: <slrndqgcs7.7sq.dcmoose@moosemeat.ca.INVALID> <20051221081048@usenet.piggo.com> <slrndqh787.a9n.dcmoose@moosemeat.ca.INVALID> <MrQ973396311654FitsmeitsQ@QsFQDN.dyndns.org> <slrndqjic7.8k2.dcmoose@moosemeat.ca.INVALID> <slrndqjk5k.fj6.pjr@nntp.petitmorte.net> <slrndqjmnj.c4g.dcmoose@moosemeat.ca.INVALID> <slrndqjo66.fj6.pjr@nntp.petitmorte.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!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: http://dcicons.fateback.com
Lines: 48
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net zV0m+uH/oQHbLr3dB64f+wReR78YL2N8c83n8CViLbf4WDl7nQ
X-Operating-System: openSUSE 10.0 (Kernel 2.6.13-15.7-default)
X-Message-Flag: This message violates the USA PATRIOT Act (HR 3162),
section 811(c). Intercepted by CARNIVORE/3.0
X-WebTV-Stationery: Standard; BGColor=black; TextColor=black
X-Face: 6k$Xf_V^i#2X;
X~[=Ra6mGRtOw!^s%HmaNj1y5a>YCL"vEl.Jjbkww,E~kI&f[*w{j:$V6a2:LKbWg@+qt)3x"fqU\H_Fy5tk8h[Iq/XW~okpDvCa\E~!fb]{H4j@CxE<vL?4q9cxiK5;
ZdpI@,Bk)(\e67mAw; L}WCZ/NYSX|R6Jj{omL6KT/$
User-Agent: slrn/0.9.8.1/rt (Linux)