Please tell me which pattern I need to use if field must not contain only spaces.
Why need to use regex?
str.trim().isEmpty()
548k questions
547k answers
4 comments
86.3k users