-3

I have the following text in my file:

src="assets/images/logo.png"

I want to search for every occurrence of src="assets/images/ + " so basically I want to exclude the file name only.

Is it possible with regex?

Radical_Activity
  • 2,424
  • 6
  • 34
  • 64

1 Answers1

-2

You can use .+? to match any file name. So, the regex should be

src=\"assets\/images\/.+?\"