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

Searching for ' - ' in a string.

Hi,

To split some data in a string, i'm using "FindOneOf(RefIDWL,' - ',1)".

Everything works wel except that the function does not only find ' - ' but also '-'.

Is there a solution?

Greetings 

Dirk.

Labels (3)
1 Solution

Accepted Solutions
sunny_talwar

I think what you really need is Index() function

Index(RefIDWL, ' - ', 1)

View solution in original post

2 Replies
Marcos_rv
Creator II
Creator II

try this:
FindOneOf(replace( RefIDWL , ' ' , '@' ) ,'@-@',1)
sunny_talwar

I think what you really need is Index() function

Index(RefIDWL, ' - ', 1)