Hello, all!
I need a regex that matches a string containing the words with uppercase letters at the begin of the word and moreover the words must be divided by spaces. I'm trying to do it using the following expression:
^([A-z]{1}[a-z]+[ ]{0,1})+$
But in this case the space is not required.
I'm working with ASP.NET Framework 3.5 in C# and i am using for my application DynamicData.
Thus, these values should match: Miass, Nizhniy Novgorod, Staryi Oskol, New York. These values should not: NizhniyNovgorod, nizhniy novgorod.
The spaces are required. It is necessarily that the word must start with the uppercase letter.
Thank you very much.