I am new to the regular expression format.
I just read a line of code in MVC data property, which is
RegularExpression(@"^[A-Z]+[a-zA-Z''-'\s]*$")
. I spent time in reading RE descriptions on the Internet, but still can not figure out what is the meaning of the part (''-'
) in the RegularExpression(@"^[A-Z]+[a-zA-Z''-'\s]*$")
.
Anyone who can give a hint on the (''-') part will be very appreciated.
Thanks. Yang