procmail
[Top] [All Lists]

Re: Problems with space

2005-11-25 11:23:17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 25 Nov 2005 15:07:30 +0100, Ruud H.G. van Tol wrote:

Frank Bures:
Ruud H.G. van Tol:

I found what my problem probably is:  My trigger strings contain "$"
character.  Properly escaped as "\$", but I believe it is
interpreted some way I do not fully understand.

Change the \$ to [$] to make it survive any reparsing.

In particular:  Regexp ' \$[a-z]+' properly catches words starting
with "$" that have at least one space in front of them.  However, if
used in conjunction with "${SPACE}", it sometime catches a perfectly
normal word at the beginning of a new line that has no "$" in it.

A bare $ matches a newline.

That's not what I meant.

It actually is what you meant:
The '\$' gets reparsed to '$', making it a regexp-special to match a
newline.

Change it into a '[$]' and it is protected against perpetual reparsing.


I finally got it working.  The correct notation of character "$" as a simple 
character is '[\$]'.

Everything works fine now.  Thanks for your help.


Frank Bures, Dept. of Chemistry, University of Toronto, M5S 3H6
fbures(_at_)chem(_dot_)toronto(_dot_)edu
http://www.chem.utoronto.ca
PGP public key: http://pgp.mit.edu:11371/pks/lookup?op=index&search=Frank+Bures
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0 OS/2 for non-commercial use
Comment: PGP 5.0 for OS/2
Charset: cp850

wj8DBQFDh0arih0Xdz1+w+wRAoKoAKCUmYCfdhk8U72cMPjLEWt3Zc48HQCg6Y2G
8Xapabv2CF7tL+iuttQGW4w=
=lyb+
-----END PGP SIGNATURE-----



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>