← GalleryCSS & JSON finding RegEx✨ Emoji Combos/(?:(?:src\=)|(?:data-backgroundImage\=)|(?:data-image\=)|(?:url\()|(?:url[\"\']*\:)|(?:href\=)|(?:rel\=))\s*[\'\"]?\s*([(?http:)(?https:)]*[(?:\/\/)*(?:\.\.\/)*]*)?(([^\:\n\;\*\"\?\<\>\{\}\|\=\!\@\$\^\/]*\.([a-zA-Z][a-zA-Z0-9]{1,4}))?\/*([^\:\n\;\*\"\?\<\>\{\}\|\=\!\@\$\^]+\.(css|js)))[\'\"\)\;\s\?\>]/giJavaScript+09 years ago✓ Pre-loaded
About this regex
This regex extracts CSS and JavaScript file paths from HTML attributes or CSS url() values. It matches common resource declarations such as src, href, data-image, background-image, and url() syntax, capturing the file name with its extension. Useful for web scraping, asset mining, or auditing external resources.