string manipulation question
Kenneth Brody
kenbrody at bestweb.net
Fri Dec 10 19:57:42 PST 2004
Tony Ryder wrote:
[...]
> > As long as you don't want to computer two quotes into four, use the
> > following edit:
> >
> > { {!" "!}@ | "'"<"'"> | * }
> >
> > This will convert one single-quote into two, and it will leave two
> > single-quotes as two.
>
> I do not understand what the @ sign does in this edit.
It matches EOF, so that only trailing spaces are deleted. Otherwise, all
spaces within the field would be removed.
Question to ponder:
Why does the edit fail if the data has any single quotes, and you don't
strip trailing spaces?
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>
More information about the Filepro-list
mailing list