Solved

Regex help not include the "src" or "href"

Posted on 2013-02-03
1
256 Views
Last Modified: 2013-02-03
How can I not include the "src" or "href"?


(src|href)="(.+?)(?:jpg|gif|png|css)"

Text:
<a href="/Modules/Store/Products/CustomDetails/Images/1.jpg">
<link href="/Stylesheets/all.css" rel="stylesheet" type="text/css" />
<img src="/Images/Logo.png">

Current Match:
href="/Modules/Store/Products/CustomDetails/Images/1.jpg"
href="/Stylesheets/all.css"
src="/Images/Logo.png"

Desired Match:
"/Modules/Store/Products/CustomDetails/Images/1.jpg"
"/Stylesheets/all.css"
"/Images/Logo.png"
0
Comment
Question by:JRockFL
1 Comment
 
LVL 20

Accepted Solution

by:
informaniac earned 500 total points
Comment Utility
(?!(?:src|href)=)"(.+?)(?:jpg|gif|png|css)"

Open in new window

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
send mail from app.net 8 27
Why, and when, to use Windows Workflow 1 16
Image(7) 1 33
ConsoleSql 1 12
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

11 Experts available now in Live!

Get 1:1 Help Now