I am trying to fix my beneficiary name with regex. I need to collect some names. These names can be one word name, two word name, or even three, four or five words name. Number of words in a name is not pre defined. I want first letter of all names to be capital letter.
- Athaul Karim
- Saifullah Mohammad Faisal
- Mohammad Tasfik Uddin Rukan
For this, I have input regex in constraint like this:
It works fine. The only problem is, it does not allow one word name. How can I fix this? Any suggestion? Thanks in advance.