Solved

ASP replace function - problem with quotation marks

Posted on 2006-07-03
2
355 Views
Last Modified: 2007-12-19
Hi

I am trying to replace the latter end of URLs in a long string of data to open the links in a new window. All of the URLs end with the letters 'CQ' What I need to do is replace the string

      CQ">

with the string

      CQ" target = "_blank">

The replace function is obviously going to get confused by the double quotes - is there a way I can identify and replace this string without baffling the function?
0
Comment
Question by:Nicola-H
2 Comments
 
LVL 12

Accepted Solution

by:
Proactivation earned 100 total points
ID: 17029878
Hi Nicola,

Just replace any double quotes with double-double quotes, so:

Replace(myString, "CQ"">", "CQ"" target = ""_blank"">")
0
 
LVL 1

Author Comment

by:Nicola-H
ID: 17029891
Fabulous - thanks :-)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
replace character in column with the unicode characters .. Only help with the syntax 2 68
Select distinct 25 115
INNER JOIN ? 8 50
Connection to multiple databases 13 25
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question