Solved

ASP replace function - problem with quotation marks

Posted on 2006-07-03
2
365 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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 was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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