Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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.