Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Check for non-alphanumeric characters

Hello,

I am reading a single field from a table. I need to check if values in this field have any non-alphanumeric characters. If present, I need to flag it in a field indicating that there are non-alphanumeric characters in the corresponding row.

Thanks for your help

2 Replies
Not applicable
Author

here's an example script:


load
value,
if(len(purgechar(value,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYZ1234567890' ))>0,'NONALPHA','') as Flag
inline [
value
abcdefghijklmnop
as2242w232342awer23
aasdasd?|||!!222asda
];


Not applicable
Author

This is exactly what I was looking for. Thank you very much.