Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Right substring

Good day.

How can i get name Finance from D:\Qvapplications\Finance.Qvw ?

Thanks

1 Solution

Accepted Solutions
tresesco
MVP
MVP

=TextBetween(StringYour, '\', '.',SubStringCount('StringYour','\'))

View solution in original post

9 Replies
tresesco
MVP
MVP

TextBetween('D:\Qvapplications\Finance.Qvw' , '\', '.',2)                   //updated

Anonymous
Not applicable
Author

thanks, but it's very simple

i want to get this value universally (text between "." and last "\")

ashfaq_haseeb
Champion III
Champion III

Like this

=SubField('D:\Qvapplications\Finance.Qvw','\',3)

Regards

ASHFAQ

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Something like:

=subfield(mid(vString, index(vString, '\', -1)), '.')

Note that this will return a partial filename if the filename contains multiple dots.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=SubField(SubField('D:\Qvapplications\Finance.Qvw' , '\', 3), '.', 1)

Regards,

Jagan.

Anonymous
Not applicable
Author

i need to get text between last symbol "\" and "."

for example:

D:\Qvapplications\Finance.Qvw - Finance

D:\Qvapplications\Path1\Finance.Qvw - Finance

D:\Qvapplications\Path1\Path2\Finance.Qvw - Finance

thanks.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Check this

=SubField(Mid('D:\Qvapplications\Path1\Finance.Qvw', Index('D:\Qvapplications\Path1\Finance.Qvw', '\', -1)+ 1), '.', 1)

Regards,

Jagan.

tresesco
MVP
MVP

=TextBetween(StringYour, '\', '.',SubStringCount('StringYour','\'))

Anonymous
Not applicable
Author

thank you!