how to remove double quote from string

Hopefully a simple solution.  I am trying to pass text to a variable...


This is a "lovely day" for all of us experts.

I want to assign the text above to a variable (strData) and I want to strip out the double quotes.  I am getting that text from my CMS application.
I have been using this without any luck
function cleanString(myString)
    myString = replace(myString,"'","")
    myString = replace(myString,"","")   
    myString = replace(mystring,"", "")
    myString = replace(mystring,"", "")
   ' myString = Replace(mystring, """, "")
    mySring  = Replace(mystring, "'", "")
    myString = replace(mystring, """","")
    'myString = replace(mystring,"chr(34)","")
    'myString = replace(mystring, chr(34),"")
    cleanString = myString
end function

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ThinkPaperIT ConsultantCommented:
Hmm.. This should have resolved the problem:

myString = replace(mystring, """","")

I wonder if it's an issue with it going thru the function properly. What happens when you run the replace directly on the string itself, then print it out to see?

mystring = 'This word is "quoted" yo.'
mystring = replace(mystring, """","")
response.write mystring

If it still fails, do a replace for another character just to ensure it is working properly (say, the character 'o').
RobinSoftware EngineerCommented:
If the above suggestion does not work, may be it is not a double quote?

Can you try and replace a ascii character 168 (ALT-0168 : ¨), that looks like a double quoute.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.