Regex for extracting just a name of image from the img src

Viewed 206

I have img url like this:

<img src="https://www.example.com/examplee/media/photo/v1/something.png">

and I want to extract from here just a name of this image without extension .png or .jpg

what I tried:

/[^/\\]+(?:jpg|png)/gi

but this gave me something.png but as I said above, I need only name without the .png

Can someone please help me? I am totally inexperienced with regex.

Thanks!

2 Answers
Related