Avatar of jknj72
jknj72

asked on 

Another string manipulation

I have a string that has a network path aloing with a filename assigned to it.
'\\dev01\company011\_fileserver\content\Image\VCSJK_1bd00b4f-c26e-4d01-84c6-d0848aa258d5_concert.jpg'

I need the filename stripped from the string
'VCSJK_1bd00b4f-c26e-4d01-84c6-d0848aa258d5_concert.jpg'

I am trying to get everything from the right of 'Image\' but I figured Id post it as well

Thats it!!

Thanks
DatabasesOracle DatabaseSQL

Avatar of undefined
Last Comment
jknj72
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Sean Stuber
Sean Stuber

REGEXP_SUBSTR(
           '\\dev01\company011\_fileserver\content\Image\VCSJK_1bd00b4f-c26e-4d01-84c6-d0848aa258d5_concert.jpg',
           '[^\]+$'
       )
Avatar of Aneesh
Aneesh
Flag of Canada image

declare @string varchar(1000)  = '\\dev01\company011\_fileserver\content\Image\VCSJK_1bd00b4f-c26e-4d01-84c6-d0848aa258d5_concert.jpg'

SELECT REVERSE( LEFT( reverse (@string),CHARINDEX('\', reverse (@String) )-1) )
aneeshattingal,

Oracle Zone implies Oracle solution...
Avatar of jknj72
jknj72

ASKER

thanks again
Oracle Database
Oracle Database

Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.

81K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo