Forum Discussion
jak8282
3 years agoHelper III
Find characters in a string
Is there a way to search for special characters in a string like below "#*&%$£!^+;:?<>" I want to say if it finds any of them its "Invalid"
- 3 years ago
Hi jak8282
In Power Query create a Custom Column with this
if List.ContainsAny(Text.ToList([String]),Text.ToList("#*&%$£!^+;:?<>")) then "Invalid" else "Valid"Regards
Phil
PhilipTreacy
3 years agoSuper User
Hi jak8282
In Power Query create a Custom Column with this
if List.ContainsAny(Text.ToList([String]),Text.ToList("#*&%$£!^+;:?<>")) then "Invalid" else "Valid"
Regards
Phil
jak8282
3 years agoHelper III
Thanks Phil - thats great