I'm trying to get these regex criteria working but they seem to accept any input.
if(preg_match('/[A-Za-z]{3,30}$/', $FirstName)){
if(preg_match('/[A-Za-z]{3,30}$/', $LastName)){
The system should reject any input that is not alphabetic or that is long than 30 characters / shorter than 3 characters.