Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract Last Part of a String

Status
Not open for further replies.

khdavis

Technical User
Mar 27, 2002
22
US
Hi All, I'm using CR10/Oracle database and trying to extract the last part of a string that looks something like this --

C:\Documents and Settings\bha\My Documents\Problem Management\FINAL\2763213 AIG Europe AIU PARSEXC2 FailedArray.pdf

I need to get everything after the last "\" (basically the file name).

The path can change, so there is no consistency with the number of "\" that are found.

Any help would be greatly appreciated! Thanks!
 
Use a formula like:

stringvar array x := split({table.string},"\");
x[ubound(x)]

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top