© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
18 replies
js

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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

way to check if a string contains only alphabet
C#CC# / help
2y ago
Check if a string contains a word in an array
C#CC# / help
4y ago
❔ Checking if a string only contains specified characters (Order doesn't matter)
C#CC# / help
3y ago