Page 1 of 1

Replace Command

Posted: Wed Mar 25, 2009 6:51 pm
by warrenk
I would like to replace a double quote (") with another character. How would I specify the double quote without getting a error?

Thanks for any help!
Warren

Posted: Wed Mar 25, 2009 7:03 pm
by sturgis
edit: Knew i'd seen this in another post:
http://forums.runrev.com/phpBB2/viewtopic.php?t=2781

you can just use the quote keyword, what you want to replace it with, and where the string is that you're modifying.

so if a var theVar has the string "This is a "test" string" in it

Code: Select all

replace quote with "q" in theVar
answer theVar

Posted: Wed Mar 25, 2009 7:10 pm
by warrenk
Thanks Sturgis! appreciate the help!

Warren