I have regular expression
/url\\(\\s*(?!data:)([^\\)\\s]+)\\s*\\)?/
It searches in css for lines like this
background-image: url(/path.to/img.png);
And ignores the lines
background-image: url(data:image/svg+xml;base64, PHN2ZyB4bWxucz) no-repeat;
It is used to find image paths and replace them.
But if Data url has quotes
background-image: url("data:image/svg+xml;base64, PHN2ZyB4bWxucz") no-repeat;
Regular expression matches it. I need to match usual image url and ignore Data url with single, double quotes or without them.
?in them... all you've done is treat this place as a "do my job for me" jobs board.