🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #86115

Re: [XNews] Recognizing quoted lines

#86115
From: kocurek
Date: Wed, 24 Oct 2001 19:40
59 lines
3463 bytes
M. J. Freeman wrote:

> Is there anyway to make XNews recognize some set of characters  (e.g., 
> {>,#,%} ) as marking quoted text?

Of course there is! You are using Xnews - the best newsreader for Windows.
In the Misc section you find "Treat lines matching this regex as quoted text"

I prefer using this one:

^(\s?([!|�}#>%]|\w{1,5}\s?>|[+]\s|:(?![()DPb-]+(\W|$)))\s?)

Everbody knows that the only right quotation sign is ">".
No, sorry... - not everybody knows that :)
Quotation signs used in this regexp are: !|:�}#>%
Quite a lot, huh? I don't know what else people can think of... :o)

It quotes great for me. Even stuff like this:

> Normal quoted text. Testing...
>12345> Almost normal...
 > One space, quotation sign, space. Yes, it is being quoted...
>Not very nice quoted text... - I mean that missing space :-)
> >>OE like quoted text... 
12345 > also quoted...
12345> and this one is qouted too...
JW> Gnus with supercite... also The Bat! - a mail client... 

and, of course, it doesn't quote stuff like this:

123456> Who said that 5 characters is enough? I don't know... :-)
123456 > this one won't be quoted...
  > Two or more spaces... no quotation...
:-) - smileys in the beginning of the line... it hapens to me very often
:)
:->
;-)
:-D
:-))))))))

You can change it to fit your needs. Have fun.

PS. I didn't write it. It was written by some linux user...
PPS. I just found more complicated one:

^(\s?([!|#>%]|\w{1,5}\s?>|\w{0,3}([A-Z]|[a-z]){1,6}\w?>|[+]\s|:(?![()DPb-]+(\W|$)))\s?)

Can someone explain me what's the difference comparing this one with the first one?

PS3. Where can I learn more about those regexps? I have some tutorials
downloaded from the web, but what I mean - is there a usenet group
or a good mailing list where I could learn regular expressions?

-- 
 /\_/\         Smile,  it's  the  second  best  thing  you  can do with your
(~o o~)  lips.
 )'Y'(   __________________________________________________________________
(     ) / *kocurek*    Jacek Wojaczynski                                   \
Technical Details
Message-ID: <9r79b8.3vs6dkj.1@kici.mici.miau>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!news.ipartners.pl!news.internetia.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <Xns9144731D4706B3141593832666@129.137.41.61>

Show Full Headers
Complete Article Headers
Message-ID: <9r79b8.3vs6dkj.1@kici.mici.miau>
Subject: Re: [XNews] Recognizing quoted lines
Date: Wed, 24 Oct 2001 19:40:38 +0000
From: kocurek <kocurek@wsb.poznan.pl>
References: <Xns9144731D4706B3141593832666@129.137.41.61>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!news.ipartners.pl!news.internetia.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
Newsgroups: news.software.readers
Organization: E-mailaholics International
Lines: 58
NNTP-Posting-Host: pa113.bydgoszcz.cvx.ppp.tpnet.pl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
X-Trace: news.tpi.pl 1003952438 14516 213.76.48.113 (24 Oct 2001 19:40:38 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: 24 Oct 2001 19:40:38 GMT
X-SigInfo: Generated by Sygnaturkowiec v. 0.1.3.0
X-Face: 5^PsVFBgnge9mu%Avuib9nK:(6]1c*Z$7~TNL"%H0U=m<*dPU<?mg}YThBVud^6K6?k3C&vJyJyS_XAt7Bw-uxPB_Vm%;GjG9Oa"MC*y3mNpN"c{_-lM8$@-e']HC(<-^:RP[UX#zO!29&LiS7t~kj?]s)VpR6R;>&xRLy^$Y
User-Agent: Xnews/4.06.22 Hamster/1.3.22.103