Why does this return false for any normal word I enter?
if(!guestbook.getName().matches("[a-zA-Z0-9\\s]")) {
errors.rejectValue("name", "stringFormat.falseCharacters", "You are only allowed to use numbers, letters and spaces for the name.");
}
I must be missing something.