?
Solved

Regular Expressions in Visual Web Developer 2012

Posted on 2012-03-14
2
Medium Priority
?
424 Views
Last Modified: 2012-03-14
I have the following link that is one of 100 links on my web page.

<a onclick="window.open('http://www.link.com,'popup', 'width=800,height=600,resizable=yes,scrollbars=yes'); return false;" href="http://www.link.com">

I'd like to remove the onclick portion or (onclick="window.open('http://www.link.com,'popup', 'width=800,height=600,resizable=yes,scrollbars=yes'); return false;") for each link.  The problem is the link for each is different.  

Using regular expressions, how do I remove the portion above?  Thanks in advance!
0
Comment
Question by:Latitudes
[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 35

Accepted Solution

by:
Terry Woods earned 2000 total points
ID: 37722511
I'm not entirely familiar with that tool, but this might work. Replace:
onclick="window[.]open[^"]*"
with an empty string.

 That will affect ALL tags, not just <a> tags though. If you need to target just <a> tags, let me know.
0
 

Author Closing Comment

by:Latitudes
ID: 37722611
Thanks for the quick reply! This works great!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

741 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