-3

Hi I'm trying a lot about this and I'm not reaching the solution.

I'm reading a CSS file and I want to match the path strings inside the url(" "). In the file there are also base64 sources that starts with url("data: and i don't want those.

EDIT: But now I'm testing with this https://regex101.com/ I digit url\(\".\"\) and it give me nothing.

Antonello Gatto
  • 1,603
  • 2
  • 16
  • 29

1 Answers1

1

Use ?! for negative lookahead: url\(\"((?!data:).*)\"\)

Gereon
  • 17,258
  • 4
  • 42
  • 73