[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Replace Statements - Double quotes

Posted on 2006-06-21
2
Medium Priority
?
225 Views
Last Modified: 2012-05-05
Hey, I'm sure the answer to this is somewhere already, but my account was just suspended (haven't answered any in a while) so I can see solutions.  But I still have points to give away!  I'm wondering what the easiest way to replace two html lines of buttons are.  I'm scraping a web page (my own) to send in an email and I want everything but the buttons to go along.  But with all the double quotes and stuff in the html, a simple replace doesn't work.  How should I do this?

What doesn't work:

strOutput = Replace(strOutput, "<input type="submit" name="btnPrint" value="Print" id="btnPrint" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" />", "")
       
strOutput = Replace(strOutput, "<input type="submit" name="btnCancel" value="Cancel" id="btnCancel" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" />", "")


Thanks in advance for your help!    
0
Comment
Question by:brianpsmith81
[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 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 16954371
You use two quotes together (""):

    strOutput = Replace(strOutput, "<input type=""submit"" name=""btnPrint"" value=""Print"" id=""btnPrint"" class=""btn"" onmouseover=""this.className='btn btnhov'"" onmouseout=""this.className='btn'"" />", "")
0
 
LVL 3

Author Comment

by:brianpsmith81
ID: 16954776
Oh yeah, I should've known that!  Thanks! :-)
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

656 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