regex simple question

what would be  a regex not allows space between words?  

ex.  mytest  - is ok
ex. my test  - is not ok.
1jawsAsked:
Who is Participating?
 
RickConnect With a Mentor Commented:
^[\S]*$
0
 
ZShaverCommented:
[\s]
0
 
ZShaverCommented:
[:space:]
0
 
1jawsAuthor Commented:
thanks that works!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.