SyntaxFix
Write A Post
Hire A Developer
Questions
You can try this:
Declare @test varchar(100)='images/test.jpg' Select REPLACE(RIGHT(@test,charindex('/',reverse(@test))-1),'.jpg','')