© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Using Regex for spaces - Java Community | Help. Code. Learn.
JC|HCL
Java Community | Help. Code. Learn.
•
13mo ago
•
45 replies
bed
Using Regex for spaces
Hello
, I currently use
!hasnext
(
) to try and ensure that the input word doesn
't have any characters other than letters
, which works fine
however I am not sure how to make it so that regex also detects whether or not any spaces are in the input
Java Community | Help. Code. Learn.
Join
We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!
27,732
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
regex
JC|HCL
Java Community | Help. Code. Learn. / java-help
12mo ago