Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
arusiva89
Contributor III
Contributor III

Text from URL

I want to extract the last text from URL

Url will be like 

Google.com/ABC

Google.com/abc/123

Always last text in the URL should be returned..I can't use subfield function 

1 Solution

Accepted Solutions
Kushal_Chawda

@arusiva89  subfield can be used here as below

=subfield(URL,'/',-1)

View solution in original post

2 Replies
Taoufiq_Zarra

@arusiva89  like :

mid(URL,Index(URL,'/',-1)+1) as Text_From_URL

 

Example :

Input:

load *,mid(URL,Index(URL,'/',-1)+1) as Text_From_URL inline [
URL
Google.com/ABC
Google.com/abc/123

];

output:

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Kushal_Chawda

@arusiva89  subfield can be used here as below

=subfield(URL,'/',-1)