Hello!
I want to make a validation for a string which can be only letters AND
space. for example "apple house", but not "apple3 house"
i have found
if (preg_match ("/[^A-z]/", $string)) return false
esle return true
this does not accept a space. i tried \s, \S. and [:space:] but it
didn't work.
I tried several tutorials, but my problem is not mentioned there. And to
say the true RegEx seem pretty difficult to me.
I apreciate any help,
Flos
sorry for spelling mistakes
I want to make a validation for a string which can be only letters AND
space. for example "apple house", but not "apple3 house"
i have found
if (preg_match ("/[^A-z]/", $string)) return false
esle return true
this does not accept a space. i tried \s, \S. and [:space:] but it
didn't work.
I tried several tutorials, but my problem is not mentioned there. And to
say the true RegEx seem pretty difficult to me.
I apreciate any help,
Flos
sorry for spelling mistakes
Comment