to find all url css commands that do not have quoted URLs
url\(([^"'\)]+)\)
- match case senstivie
url(
- start capture group 1
- Match a single character not present in
[^"'\)]
"
'
)
- With
+
match previous token between one and unlimted times as many times a possible, giving back as needed ( greedy )
- Match a single character not present in
- match case senstivie
\)
Then the replacement would look like this
url('$1')