Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
harleen_singh
Creator III
Creator III

Skip special characters

Hello,

               Is there is any function in Qlikview which skip special characters?

From a string, I just want to read only digits 1 to9 and A-Z from a string

thanks

Lavi

1 Solution

Accepted Solutions
Anonymous
Not applicable

Or use the opposite, PurgeChar(String, 'Characters to exclude')

This removes the unwanted characters

View solution in original post

3 Replies
giakoum
Partner - Master II
Partner - Master II

KeepChar(s1 , s2)

Returns the string s1 less all characters not contained in string s2.

Example:

keepchar ( 'a1b2c3','123' ) returns '123'

Anonymous
Not applicable

Or use the opposite, PurgeChar(String, 'Characters to exclude')

This removes the unwanted characters

Not applicable

Use KeepChar or PurgeChar function, both will help you in skipping special charecters. Using Keepchar you can keep (e.g. 0-9 and Aa-Zz) required charecters and using purgechar you can actually purge/skip unwanted charecters.

Thanks,

Amey.