2

Hello I'm trying to write a regular expression to implement a simple First Name + Space + Last Name in Java. Two words with only one space between them. The total length (including the white space) of the text should be between 8 and 60 characters. I tried the following but it does not work.

"[a-zA-z][ ][a-zA-Z]{8,60}"

0 Answers0