KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I can't seem to figure out the regex pattern for matching strings only if it doesn't contain whitespace. For example "this has whitespace".match(/some_pattern/) should return nil but "nowhitespace".match(/some_pattern/) should return the MatchData with the entire string. Can anyone suggest a solution for the above?
Tags (comma-separated)
Save Edits
Cancel