Sevice Catalog - Regular Expression - Firstname Lastname
Dear All,
Can you help me with how to do a Firstname Lastname regular expression in a text box for Service Catalog.
Kind Regards
Daniel
Best Answer
-
Peter_Miklian Customer Advanced IT Monkey ✭✭✭
@CaterhamITSupport what exactly do you want to match?
Maybe you could use this for checking for 2 words each beginning with capital letter, having all other (at least 1) letters small and delimited with the space:
^[A-Z][a-z]+\s[A-Z][a-z]+$
Why would you test this? Names could have special characters, consist of more words etc.
Here's nice online regex creation page with explanations and real-time testing: https://regex101.com/
5
Answers
@CaterhamITSupport what exactly do you want to match?
Maybe you could use this for checking for 2 words each beginning with capital letter, having all other (at least 1) letters small and delimited with the space:
Why would you test this? Names could have special characters, consist of more words etc.
Here's nice online regex creation page with explanations and real-time testing: https://regex101.com/
Thank you, that worked really well!
Kind Regards
Daniel