Test, validate and match regular expressions
This regex matches a CSS 'background-image' property and captures the URL inside its url() function, allowing for optional spaces and either single or double quotes. It is commonly used for extracting image paths from stylesheets, minified CSS, or inline styles to facilitate asset management, web scraping, or preloading. The pattern is specific to the exact property name, so it avoids false positives on other url() declarations.