String Search & Replace?
Kenneth Brody
kenbrody at bestweb.net
Thu Nov 4 07:44:11 PST 2004
Joe Chasan wrote:
>
> On Thu, Nov 04, 2004 at 09:19:15AM -0500, Tim Fischer wrote:
> > I'm running into an issue where I need to take all the "'s out of a string
> > and replace them with \". It needs to be entirely dynamic as I don't know
> > where in the string the "'s will be.
[...]
> while i agree that the help for xlate does not specifically state you
> can us it on multiple occurences of the same character or string, but
> it does - in the time it took you to type your message, you could just
> as easily have typed in a simple test
> @wlf1::1=xlate(1,chr("34"),chr("92")); display; end
>
> plugged in some sample data on screen and see it work.
He wants to replace the single character "quote" with the pair of
characters "backslash-quote".
--
+-------------------------+--------------------+-----------------------------+
| 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