Solved

ASP replace function - problem with quotation marks

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now