Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Ciara
Creator
Creator

Checking the format of a string

I have a field that holds customers names. 

Eg, Lastname,Firstname

I want to create a flag that will check for the above format. 

For example: Does it meet the following criteria

  • there are 2 substrings delimited by a comma
  • the first substring starts with an uppercase letter followed by lowercase
  • the second substring starts with an uppercase letter followed by lowercase

If the field meets all the criteria above, then give it a flag of 1, otherwise, give it a flag of 0.

Thanks

Ciara

10 Replies
Ciara
Creator
Creator
Author

Thanks so much @Kushal_Chawda  and @Taoufiq_Zarra 

I will try both solutions..... plus I've learned a lot by breaking down your code.

Every little helps 😊

Thanks

Ciara