Solved

ASP replace function - problem with quotation marks

Posted on 2006-07-03
2
372 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

636 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