• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 429
  • Last Modified:

Regular Expressions in Visual Web Developer 2012

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
Latitudes
Asked:
Latitudes
1 Solution
 
Terry WoodsIT GuruCommented:
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
 
LatitudesAuthor Commented:
Thanks for the quick reply! This works great!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now