Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
remo0017
Contributor II
Contributor II

Where condition with delimiter

Hi Everyone,

How can i put a where condition in the load statement to pull out all the records between the delimiter '/'

Example:

/AAAAA/BBBBB/

/CCCC/DDDDD/

/EEEE/FFFFFF/

/GGGG/HHHHH/

Is there anything like /*/*/ something that can work ? which can pull out all the records irrespective what string lies between the delimiters ?

Something like

LOAD

*

from <filename>

where field1='/*/*/' or field1='/*/*/*/*/';

* pulling all records irrespective of which string is between the delimiters.

Thanks very much

14 Replies
remo0017
Contributor II
Contributor II
Author

Nopes that doesn't work too

remo0017
Contributor II
Contributor II
Author

it gives all

/aaa/bbb/

/aaa/bbb/ccc/

/aaa/bbb/ccc/ddd/

/kkk/hhh/

I want to see only

/kkk/hhh/

/aaa/bbb/

settu_periasamy
Master III
Master III

May be try like this.

LOAD * Where Test like '/*/*/' and SubStringCount(Test,'/')=3;

LOAD * INLINE [
Test
/aaa/bbb/
/aaa/bbb/ccc/
/aaa/bbb/ccc/ddd/
/kkk/hhh/
]
;

shiveshsingh
Master
Master

Hi

Please try this

T:

load * inline

[Field

/AAAAA/BBBBB/

/CCCC/DDDDD/

/EEEE/FFFFFF/

/GGGG/HHHHH/];

NoConcatenate

W:

load PurgeChar(Field,'/') as Field1

Resident T;

marcus_sommer

You could use wildmatch() for it:

LOAD

*

from <filename>

where wildmatch(field1, '/*/*/', '/*/*/*/*/');

- Marcus