🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Peter Breitfeld Tue, 05 May 1998 00:00
slrn and regular expressions
#40596
Author: Peter Breitfeld
Date: Tue, 05 May 1998 00:00
28 lines
1414 bytes
In my .slrnrc-file I have the line:

ignore_quotes "^ ? ? ?[A-Z]* ?[>:|]"

The goal was to match all lines as quoted, which start with 0 to 3
Spaces, followed by 0 or more uppercase letters, another optional
space, followed by one of the Symbols ">:|".

It works, but it also matches Lines like this (whithout quotes):

"     Fred> blabla... "

It's not bad, that these lines are matched too, but I don't understand
why.
Can somebody enlighten me?

 
es gruesst
      Peter

-- 
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
  P e t e r  B r e i t f e l d                    eMail: phbrf@t-online.de
  Kreuzgasse 4, 88348 Saulgau, Germany            PGP public key available
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=

Re: slrn and regular expressions
#40613
Author: John E. Davis
Date: Tue, 05 May 1998 00:00
20 lines
1249 bytes
On 5 May 1998 16:32:06 GMT, Peter Breitfeld <phbrf@t-online.de>
wrote:
>ignore_quotes "^ ? ? ?[A-Z]* ?[>:|]"
>
>The goal was to match all lines as quoted, which start with 0 to 3
>Spaces, followed by 0 or more uppercase letters, another optional
>space, followed by one of the Symbols ">:|".

The default is to perform case-insensitive matches.  Use:
  
  ignore_quotes "^ ? ? ?\c[A-Z]* ?[>:|]"

to turn on case sensitivity.
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307

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