how do i check if a string contains only words and space
ive got an if statement that needs to check if a string contains only letters or spaces, online i can only find how to check for only letters which then flags the spaces as not letters
4 Replies
like for example if the string is "Fast Food Emporium"
it would flag as invalid as it has spaces
even though that is valid
i just want to make sure it only contains
characters and spaces
i managed this
is that ok
?
doesnt work
ugh
Char.IsLetter Method (System)
Indicates whether a Unicode character is categorized as a Unicode letter.
i got it working
but the api is so confusing to me
as a beginner
is that normal
Depends what exactly is so confusing
But yes, it's generally normal to be confused about the things you're new at