I am working with Reactjs and I am trying to show the value of an image. The valyue/url is pretty big so it looks ugly on the UI.

I would like to know how can I do something like the title of the question:

> 
> Regex to show only the characters after the last `/` and before the first `?` after the extension of the file
> 
> 
> 

So, in the case of the URL below.

`https://axsfundbeta-assets.s3.amazonaws.com/images/originals/TrCZMu1OuVYXAK4cdSS57EZyUCYDWK29KWr6vlbh.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA6GTYRA24ZFJLKRMN%2F20190604%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190604T071137Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=de0b4f862f69382002c3c0e3e6da5affc41bbe29d0b3c98e7bc210272f4d2c5d`

I would be: `TrCZMu1OuVYXAK4cdSS57EZyUCYDWK29KWr6vlbh.png`

Taking only the grey part:

> 
> <https://axsfundbeta-assets.s3.amazonaws.com/images/originals/>`TrCZMu1OuVYXAK4cdSS57EZyUCYDWK29KWr6vlbh.png`?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA6GTYRA24ZFJLKRMN%2F20190604%2Fus-east-1%2Fs3%2Faws4\_request&X-Amz-Date=20190604T071137Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=de0b4f862f69382002c3c0e3e6da5affc41bbe29d0b3c98e7bc210272f4d2c5d
> 
> 
> 

Is that possible?