Article View: news.software.readers
Article #178311Re: [slrn] regexp for scoring indirect replies
From: Peter J Ross
Date: Wed, 21 Dec 2005 23:09
Date: Wed, 21 Dec 2005 23:09
42 lines
2555 bytes
2555 bytes
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. >> 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. PJR :-) -- alt.usenet.kooks award-winners and FAQ: <http://www.insurgent.org/~kook-faq/>
Technical Details
Message-ID:
<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!wns14feed!worldnet.att.net!207.14.113.17!news.alt.net!nntp.petitmorte.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>Show Full Headers
Complete Article Headers
Message-ID: <slrndqjo66.fj6.pjr@nntp.petitmorte.net> Subject: Re: [slrn] regexp for scoring indirect replies Date: Wed, 21 Dec 2005 23:09:14 GMT From: Peter J Ross <pjr@kookbusters.org> 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> 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!wns14feed!worldnet.att.net!207.14.113.17!news.alt.net!nntp.petitmorte.net!not-for-mail Newsgroups: news.software.readers Organization: Cabal Obsidian Order [TINCOO] Lines: 42 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Operating-System: Debian GNU/Linux (Sid/Unstable) X-Kernel: Linux 2.6.14-2-686 User-Agent: slrn/0.9.8.1pl1 (Debian) Hamster/2.0.7.0