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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find CSS Url
Expression
url\(['"]?([\w\d_\-\. ]+)['"]?\)
Description
Matches a CSS Background tag. I needed this to replace image links in CSS with data-URI encoded strings.
Matches
background: url("pattern.jpg"); | background: url("yellowcard-bg.png") no-repeat scroll right top #FFFF9E; | color: #607890;
Non-Matches
margin-left: 2em; | list-style-type: decimal;
Author Rating: Not yet rated. HJennerway
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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