RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Parse linked url
Expression
((?<html>(href|src)\s*=\s*")|(?<css>url\())(?<url>.*?)(?(html)"|\))
Description
Given HTMl or CSS source, find the value of all href and src attributes + anything between url().
Matches
href="foo"|scr="foo"|url(foo)
Non-Matches
href(foo)|src(foo)|url="foo"
Author Rating: Not yet rated. Tinminator
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials