regex of only alphabets with space code example Example: only letters and spaces regex /^[a-zA-Z\s]*$/g