Thread View: news.software.readers
7 messages
7 total messages
Started by Sherkan
Thu, 20 May 2004 22:01
[Xnews] Quoted text and QuoteRegex-QuoteChars
Author: Sherkan
Date: Thu, 20 May 2004 22:01
Date: Thu, 20 May 2004 22:01
36 lines
2229 bytes
2229 bytes
Hi,
I searched google, here now..., but nowhere says which are the
parameters and what they mean and in result how configure the quote
string.
I'm meaning that nowhere is explained what means an asterisc (*) for
xnews, and inverted bar (\), etc...
Can someone explain definitively how we must configure it?
I'm using now this string
^\s*([a-zA-Z]*>\s|[>:)}|])
that I found googling in google groups, but I don't know its meaning. I
was searching for something to make quoted text from strings as
"adkfasdf>" and this works... but, why?, what is the (^) meaning here?,
what about (\) or (|) or the (*)? and the brackets ([) and (() or {?
Maybe is similar to C language, maybe not, but I don't know and in the
manual I can't see an explaining comment to that. And nor about the real
difference between QuoteRegex and QuoteChars. Which one is better to
use?
Sorry about these amount of questions but I haven't found answers
anywhere. :-|
Bye.
--
My #PPp GGGG #PPp Public Key 0x52C4F55C S k
# P G # P h a
#PPP G GGG #PPP e n
# G g # r
# GGGG # is at any PGP keyserver
Re: [Xnews] Quoted text and QuoteRegex-QuoteChars
Author: R.A.G. Seely
Date: Thu, 20 May 2004 23:15
Date: Thu, 20 May 2004 23:15
17 lines
1756 bytes
1756 bytes
Sherkan <alderaan_bay.SIN.SPAM@SPAM.NO.yahoo.es> wrote in news:Xns94F054ED4E4ikaruskatakrus@130.133.1.4: > Sorry about these amount of questions but I haven't found answers > anywhere. :-| look at the file pcre.html in your xnews directory for the syntax for regular expressions that is bothering you. -- -= rags =- <rags AT math . mcgill . ca> <http://www.math.mcgill.ca/rags> Entia non sunt multiplicanda praeter necessitatem.
Re: [Xnews] Quoted text and QuoteRegex-QuoteChars
Author: Guy
Date: Thu, 20 May 2004 23:25
Date: Thu, 20 May 2004 23:25
21 lines
2029 bytes
2029 bytes
On Fri, 21 May 2004 00:01:57 +0200, Sherkan wrote: > Hi, > > I searched google, here now..., but nowhere says which are the > parameters and what they mean and in result how configure the quote > string. > In the Manual it explains about QuoteChars and QuoteRegex. Also it explains about regular expressions(RegEx) used in Xnews. Also review the file pcre.html and scoring.txt in the Xnews executable directory. Regards, Guy -- "Whoever would overthrow the liberty of a nation must begin by subduing the freeness of speech." -- Benjamin Franklin
Re: [Xnews] Quoted text and QuoteRegex-QuoteChars
Author: Guy
Date: Thu, 20 May 2004 23:25
Date: Thu, 20 May 2004 23:25
21 lines
1861 bytes
1861 bytes
On Fri, 21 May 2004 00:01:57 +0200, Sherkan wrote: > Hi, > > I searched google, here now..., but nowhere says which are the > parameters and what they mean and in result how configure the quote > string. > In the Manual it explains about QuoteChars and QuoteRegex. Also it explains about regular expressions(RegEx) used in Xnews. Also review the file pcre.html and scoring.txt in the Xnews executable directory. Regards, Guy -- "Whoever would overthrow the liberty of a nation must begin by subduing the freeness of speech." -- Benjamin Franklin
Re: [Xnews] Quoted text and QuoteRegex-QuoteChars
Author: Sherkan
Date: Thu, 20 May 2004 23:53
Date: Thu, 20 May 2004 23:53
15 lines
1480 bytes
1480 bytes
[I answer here.] I think I must download again Xnews because I haven't that file you talk about (pcre.html) :X Well thank you, I hope find there all I need. -- My #PPp GGGG #PPp Public Key 0x52C4F55C S k # P G # P h a #PPP G GGG #PPP e n # G g # r # GGGG # is at any PGP keyserver
Re: [Xnews] Quoted text and QuoteRegex-QuoteChars
Author: »Q«
Date: Thu, 20 May 2004 23:54
Date: Thu, 20 May 2004 23:54
95 lines
4348 bytes
4348 bytes
Sherkan <alderaan_bay.SIN.SPAM@SPAM.NO.yahoo.es> wrote in
<news:Xns94F054ED4E4ikaruskatakrus@130.133.1.4>:
> Hi,
>
> I searched google, here now..., but nowhere says which are the
> parameters and what they mean and in result how configure the
> quote string.
>
> I'm meaning that nowhere is explained what means an asterisc (*)
> for xnews, and inverted bar (\), etc...
It's in pcre.html, in your Xnews directory. Looking for info about
scoring leads to that file, but looking for quote regex does not lead
there so easily, as you've found.
> Can someone explain definitively how we must configure it?
>
> I'm using now this string
>
> ^\s*([a-zA-Z]*>\s|[>:)}|])
>
> that I found googling in google groups, but I don't know its
> meaning. I was searching for something to make quoted text from
> strings as "adkfasdf>" and this works... but, why?, what is the
> (^) meaning here?
It matches the beginning of a line -- in this case, it's making sure we
are only looking at the beginning of lines for the quote string.
> , what about (\)
\ is an escape character. \s matches whitespace, whereas s would match
only the letter s.
> or (|)
This is a logical OR.
> or the (*)?
This means the preceding may occur any number of times. \s* will match
any number of whitespaces.
> and the brackets ([)
Hard brackets are used to define a character class. [a-zA-z] is the
class of alphabetic characters of both cases. The * after it indicats
we want to match any number of alphabetic characters. (Any number does
include zero.) The character class [>:)}|] will match any one of those
characters between the [ brackets ].
> and (()
The ( parenthesis ) are delimiters; in the example above, it is
marking off the logical OR provided by the | .
> or {?
There's not one in the regex you quoted, but there is a }. Inside the
character class [ brackets ], it has no special meaning -- it's just a
literal } character.
> Maybe is similar to C language, maybe not, but I don't know and in
> the manual I can't see an explaining comment to that. And nor
> about the real difference between QuoteRegex and QuoteChars. Which
> one is better to use?
Hmm, I am not sure. It looks as though the QuoteChars option is there
for people who do not have to use regex, so they can just list the
single quote characters there. It also looks like Xnews will use both
QuoteRegex and QuoteChars when trying to decide what is a quoted line.
For what you want to do, you definitely need QuoteRegex.
> Sorry about these amount of questions but I haven't found answers
> anywhere. :-|
>
> Bye.
I don't know if what I've written will really help or not -- if not,
maybe read through pcre.html then read my post again. Or maybe this
will help:
> ^\s*([a-zA-Z]*>\s|[>:)}|])
12223333333333333333333333
1 match the start of a line
2 followed by any number of spaces
3 followed by either
any number of alphabetical characters, a >, and a space
or
a >, :, ), }, or |
--
»Q«
Re: [Xnews] Quoted text and QuoteRegex-QuoteChars
Author: Sherkan
Date: Fri, 21 May 2004 02:59
Date: Fri, 21 May 2004 02:59
17 lines
1693 bytes
1693 bytes
»Q« <boxcars@gmx.net> wrote in news:MrQ94EFC05A32AD2itsmeitsQ@QsFQDN.dyndns.org: > I don't know if what I've written will really help or not -- if not, > maybe read through pcre.html then read my post again. It has been so, so, helpful :) Now I understand better the pcre.html file. Thanks for you help :) and your time. -- My #PPp GGGG #PPp Public Key 0x52C4F55C S k # P G # P h a #PPP G GGG #PPP e n # G g # r # GGGG # is at any PGP keyserver
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads