Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"I may be synthetic, but I'm not stupid" -- the artificial person, from _Aliens_


computers / alt.usenet.offline-reader.forte-agent / Filter for the string [OpenSCAD]

SubjectAuthor
* Filter for the string [OpenSCAD]Terry Pinnell
+* Re: Filter for the string [OpenSCAD]Terry Pinnell
|`* Re: Filter for the string [OpenSCAD]Geoff
| `- Re: Filter for the string [OpenSCAD]Terry Pinnell
`* Re: Filter for the string [OpenSCAD]Thomas Hochstein
 `- Re: Filter for the string [OpenSCAD]Terry Pinnell

1
Filter for the string [OpenSCAD]

<q6cgeg5r03pcm037kijvg6hroirc991oob@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2696&group=alt.usenet.offline-reader.forte-agent#2696

  copy link   Newsgroups: alt.usenet.offline-reader.forte-agent
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: me...@somewhere.invalid (Terry Pinnell)
Newsgroups: alt.usenet.offline-reader.forte-agent
Subject: Filter for the string [OpenSCAD]
Date: Fri, 09 Jul 2021 12:24:18 +0100
Lines: 12
Message-ID: <q6cgeg5r03pcm037kijvg6hroirc991oob@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: individual.net PTwZgbQfFhU4ramDYPP/ugwm5ZBxk0hBnAhOLsnJFX06mhjeCP
Cancel-Lock: sha1:SiS4lFp/DBzdny7SynBwkR/1TIY=
X-Newsreader: Forte Agent 4.2/32.1118
 by: Terry Pinnell - Fri, 9 Jul 2021 11:24 UTC

How do I make a regular expression email watch filter for this string
please?

[OpenSCAD]

Both of the following gave the syntax error. I expected the second to
work as I thought I had correctly 'escaped' the square brackets.

Subject: [OpenSCAD]
Subject: \[OpenSCAD\]

Terry

Re: Filter for the string [OpenSCAD]

<gslgeg9krmstrsm6sc9johd8gv1eg6pv1j@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2697&group=alt.usenet.offline-reader.forte-agent#2697

  copy link   Newsgroups: alt.usenet.offline-reader.forte-agent
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: me...@somewhere.invalid (Terry Pinnell)
Newsgroups: alt.usenet.offline-reader.forte-agent
Subject: Re: Filter for the string [OpenSCAD]
Date: Fri, 09 Jul 2021 15:09:06 +0100
Lines: 25
Message-ID: <gslgeg9krmstrsm6sc9johd8gv1eg6pv1j@4ax.com>
References: <q6cgeg5r03pcm037kijvg6hroirc991oob@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: individual.net /kbRRhso52Miad6w8+dxFwx/vVTGJgBVtpvOKChk9JIP/QkY2H
Cancel-Lock: sha1:pZ7a0oGV5kFio1AafBeYtaLKl80=
X-Newsreader: Forte Agent 4.2/32.1118
 by: Terry Pinnell - Fri, 9 Jul 2021 14:09 UTC

OK thanks, after a refresher in Help and some trial/error I got it.

I actually meant to ask 'How do I make a normal (Agent) expression email
watch filter ...' I now assume the answer would have been that I could
not do so. Anyway my solution is this REGULAR expression:
Subject: {\[OpenSCAD\]}

(I think 'Regular' is an unfortunate adjective to describe these obscure
syntax expressions.)

Terry Pinnell <me@somewhere.invalid> wrote:

>How do I make a regular expression email watch filter for this string
>please?
>
>[OpenSCAD]
>
>Both of the following gave the syntax error. I expected the second to
>work as I thought I had correctly 'escaped' the square brackets.
>
>Subject: [OpenSCAD]
>Subject: \[OpenSCAD\]
>
>Terry

Re: Filter for the string [OpenSCAD]

<fa1hegdipb3k89tdnv5ls1cmp8eghttqkv@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2699&group=alt.usenet.offline-reader.forte-agent#2699

  copy link   Newsgroups: alt.usenet.offline-reader.forte-agent
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: geo...@invalid.invalid (Geoff)
Newsgroups: alt.usenet.offline-reader.forte-agent
Subject: Re: Filter for the string [OpenSCAD]
Date: Fri, 09 Jul 2021 10:30:36 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <fa1hegdipb3k89tdnv5ls1cmp8eghttqkv@4ax.com>
References: <q6cgeg5r03pcm037kijvg6hroirc991oob@4ax.com> <gslgeg9krmstrsm6sc9johd8gv1eg6pv1j@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="3e37059487768e5158fb0c2fa521be5e";
logging-data="23900"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZwMvv9LWq1F9/gewWvOTkOUXYZN/omZE="
User-Agent: ForteAgent/7.20.32.1218
Cancel-Lock: sha1:E+uPYQBYApkZzlf58ghT4fWaq08=
 by: Geoff - Fri, 9 Jul 2021 17:30 UTC

On Fri, 09 Jul 2021 15:09:06 +0100, Terry Pinnell
<me@somewhere.invalid> wrote:

>(I think 'Regular' is an unfortunate adjective to describe these obscure
>syntax expressions.)

The term dates from the 1951 when computer science was inventing
languages. It has its origin in the mathematics of computer theory and
symbolic logic. The term applies because the syntax and meaning were
"regular" as defined by the language in use. Ken Thompson built on the
idea when developing B and C languages and it entered common use on
Unix in vi, sed, awk and other tools. We're stuck with it.

Re: Filter for the string [OpenSCAD]

<auof.20210709180905.1855@scatha.ancalagon.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2701&group=alt.usenet.offline-reader.forte-agent#2701

  copy link   Newsgroups: alt.usenet.offline-reader.forte-agent
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: thh...@thh.name (Thomas Hochstein)
Newsgroups: alt.usenet.offline-reader.forte-agent
Subject: Re: Filter for the string [OpenSCAD]
Date: Fri, 09 Jul 2021 18:09:06 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <auof.20210709180905.1855@scatha.ancalagon.de>
References: <q6cgeg5r03pcm037kijvg6hroirc991oob@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
logging-data="24075"; mail-complaints-to="abuse@th-h.de"
Injection-Info: reader02.eternal-september.org; posting-host="ce7219e0d53f61f0cb0fa432f483427c";
logging-data="5258"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+q/MirbMx4EGe/wIEKtWHf"
User-Agent: ForteAgent/8.00.32.1272
Cancel-Lock: sha1:HVtnwwljB9rqoAfMq+Y7nhr/sfk=
sha1:izAsGv6Tz6f62F/n46ENdNkO+OY=
X-Face: *OX>R5kq$7DjZ`^-[<HL?'n9%\ZDfCz/_FfV0_tpx7w{Vv1*byr`TC\[hV:!SJosK'1gA>1t8&@'PZ-tSFT*=<}JJ0nXs{WP<@(=U!'bOMMOH&Q0}/(W_d(FTA62<r"l)J\)9ERQ9?6|_7T~ZV2Op*UH"2+1f9[va
X-NNTP-Posting-Date: Fri, 09 Jul 2021 18:09:05 +0200
X-Clacks-Overhead: GNU Terry Pratchett
 by: Thomas Hochstein - Fri, 9 Jul 2021 16:09 UTC

Terry Pinnell schrieb:

> How do I make a regular expression email watch filter for this string
> please?
>
> [OpenSCAD]

Regular expressions in Agent have to be enclosed in curly braces, so:
| Subject: {\[OpenSCAD\]}

Without escaping the square brackets the expression would match any
subject containing at least one of the characters in those brackets,
as "[...]" defines a character range.

> Both of the following gave the syntax error. I expected the second to
> work as I thought I had correctly 'escaped' the square brackets.
>
> Subject: [OpenSCAD]
> Subject: \[OpenSCAD\]

Outside of regular expressions, i.e. without curly braces, square
brackets stand for a range of numbers in Agent's expression language,
like "[10,100]", so only digits are allowed between square brackets.

Regards,
-thh

Re: Filter for the string [OpenSCAD]

<d8viegh5jgeba2uqle64sbm93e8q0evmno@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2703&group=alt.usenet.offline-reader.forte-agent#2703

  copy link   Newsgroups: alt.usenet.offline-reader.forte-agent
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: me...@somewhere.invalid (Terry Pinnell)
Newsgroups: alt.usenet.offline-reader.forte-agent
Subject: Re: Filter for the string [OpenSCAD]
Date: Sat, 10 Jul 2021 12:04:07 +0100
Lines: 18
Message-ID: <d8viegh5jgeba2uqle64sbm93e8q0evmno@4ax.com>
References: <q6cgeg5r03pcm037kijvg6hroirc991oob@4ax.com> <gslgeg9krmstrsm6sc9johd8gv1eg6pv1j@4ax.com> <fa1hegdipb3k89tdnv5ls1cmp8eghttqkv@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: individual.net AFlfNg9mYeRQWk6fO5BM7g9YytugEDMlWm97K196YmMY9xNZWJ
Cancel-Lock: sha1:2lorlpHptig8WUJ5reojCtwjj/Q=
X-Newsreader: Forte Agent 4.2/32.1118
 by: Terry Pinnell - Sat, 10 Jul 2021 11:04 UTC

Geoff <geoff@invalid.invalid> wrote:

>On Fri, 09 Jul 2021 15:09:06 +0100, Terry Pinnell
><me@somewhere.invalid> wrote:
>
>>(I think 'Regular' is an unfortunate adjective to describe these obscure
>>syntax expressions.)
>
>The term dates from the 1951 when computer science was inventing
>languages. It has its origin in the mathematics of computer theory and
>symbolic logic. The term applies because the syntax and meaning were
>"regular" as defined by the language in use. Ken Thompson built on the
>idea when developing B and C languages and it entered common use on
>Unix in vi, sed, awk and other tools. We're stuck with it.

Thanks Geoff, understood. Analogous to 'regular polygon' etc.

Terry

Re: Filter for the string [OpenSCAD]

<0nvieg9n7pufnjtv22bc0v2ojevripa39q@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2704&group=alt.usenet.offline-reader.forte-agent#2704

  copy link   Newsgroups: alt.usenet.offline-reader.forte-agent
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: me...@somewhere.invalid (Terry Pinnell)
Newsgroups: alt.usenet.offline-reader.forte-agent
Subject: Re: Filter for the string [OpenSCAD]
Date: Sat, 10 Jul 2021 12:14:10 +0100
Lines: 81
Message-ID: <0nvieg9n7pufnjtv22bc0v2ojevripa39q@4ax.com>
References: <q6cgeg5r03pcm037kijvg6hroirc991oob@4ax.com> <auof.20210709180905.1855@scatha.ancalagon.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: individual.net PJGJJL3Z8bl5MD9kfwja3AAdOJIPnKpYcKmIIZlaY0GG5fxZKC
Cancel-Lock: sha1:k5ZYiJ4djr5rQhqOane1CpKizqw=
X-Newsreader: Forte Agent 4.2/32.1118
 by: Terry Pinnell - Sat, 10 Jul 2021 11:14 UTC

Thomas Hochstein <thh@thh.name> wrote:

>Terry Pinnell schrieb:
>
>> How do I make a regular expression email watch filter for this string
>> please?
>>
>> [OpenSCAD]
>
>Regular expressions in Agent have to be enclosed in curly braces, so:
>| Subject: {\[OpenSCAD\]}
>
>Without escaping the square brackets the expression would match any
>subject containing at least one of the characters in those brackets,
>as "[...]" defines a character range.
>
>> Both of the following gave the syntax error. I expected the second to
>> work as I thought I had correctly 'escaped' the square brackets.
>>
>> Subject: [OpenSCAD]
>> Subject: \[OpenSCAD\]
>
>Outside of regular expressions, i.e. without curly braces, square
>brackets stand for a range of numbers in Agent's expression language,
>like "[10,100]", so only digits are allowed between square brackets.
>
>Regards,
>-thh

Thanks, understood. As you see up-thread I finally got there myself a
while after posting ;-)

Also went searching for a list of special characters in this context,
That's usually the main cause of my hesitation on the infrequent
occasions I make a filter. In case it's of help to anyone who ends up
here with a similar query I'll paste below. Note that I haven't checked
it 100% for accuracy to Agent; it was from a post in the forum of my
text editor, TextPad.

--------------------
These characters are not special in regular expressions and can be used
literally:
Code:
: ,
_ '
; "
<
>
/ ~

These characters are special in regular expressions and (in most cases)
must be quoted, either by prefixing them with a backslash (\) or by
turning them into a character class by enclosing them in square brackets
([..]).:
Code:
$ ?
* +
( )
[ ]
{ }
| ..

These characters are special in regular expressions and must be quoted
by prefixing them with a backslash (\) whether or not they are in a
character class:
Code:
^ \
--------------------

Terry

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor