Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Regular Expressions in Visual Web Developer 2012

Posted on 2012-03-14
2
Medium Priority
?
426 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

610 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