Revision: 45564
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 4, 2011 05:12 by pussard
Initial Code
function extractCssPaths(css) { var results = css.match(/url\(['"]?[^\s]*['|"]?\)/g); for (var i = 0, max = results.length; i < max; i++) { results[i] = results[i].replace(/url\(/, ''); results[i] = results[i].replace(/['|"]/g, ''); results[i] = results[i].replace(/\)/, ''); } return results; }
Initial URL
Initial Description
Returns an array of all URL image paths to assist in saving all assets from CSS
Initial Title
Extract CSS Paths
Initial Tags
Initial Language
JavaScript