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

Can i use regex in Qlik Sense?

Hi,

i want to use regex in Qlik Sense for a selection field for example. One field shows URL´s and i want to cut http://www.domain.com/ and show only the rest from the url.

Is that possible?

regards,

René

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Not regex, but it shouldn't be too hard to cut off the first part: mid(MyUrlHere, index(MyUrlHere, '/', 3)+1) as RestOfUrl

And if you want the last part page1.html?p1=123&p2=abc of an url like http://www.domain.com/news/20160421/a/page1.html?p1=123&p2=abc then you can use:

=mid(MyUrlHere, index(MyUrlHere, '/', -1)+1)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Not regex, but it shouldn't be too hard to cut off the first part: mid(MyUrlHere, index(MyUrlHere, '/', 3)+1) as RestOfUrl

And if you want the last part page1.html?p1=123&p2=abc of an url like http://www.domain.com/news/20160421/a/page1.html?p1=123&p2=abc then you can use:

=mid(MyUrlHere, index(MyUrlHere, '/', -1)+1)


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Great, thanks a lot!

regards,

rené