Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Parsing Text

Hello Everybody,

I want to pull out a string of text from a  field(Text) within my Qlikview. The text has defined strings that open the string that I want to capture and close the string that I want to capture. The number of characters that I want to capture is not definite. There are multiple fields that I want to pull out of this field. Please help me write this script.

So far I got:

LOAD Text,

          IF(index(Text, 'openstring'), mid(Text,11, ....and then this is where I get lost.

I'm assuming there needs to be a len(), but I am unsure of how to define the string with the 'openstring' and 'closestring'

Thanks in advance!

1 Solution

Accepted Solutions
Not applicable
Author

I figured it out. TextBetween(Text, 'openstring','closestring') worked perfect.

View solution in original post

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     May be Something like this

     SubField(SubField(FieldName,'ClosedString',1),'OpenString',1)

Celambarasan

Not applicable
Author

I figured it out. TextBetween(Text, 'openstring','closestring') worked perfect.