Solved

regex simple question

Posted on 2012-04-03
4
262 Views
Last Modified: 2012-04-03
what would be  a regex not allows space between words?  

ex.  mytest  - is ok
ex. my test  - is not ok.
0
Comment
Question by:1jaws
  • 2
4 Comments
 
LVL 7

Expert Comment

by:ZShaver
ID: 37803513
[\s]
0
 
LVL 7

Expert Comment

by:ZShaver
ID: 37803515
[:space:]
0
 
LVL 13

Accepted Solution

by:
Rick earned 500 total points
ID: 37803654
^[\S]*$
0
 

Author Closing Comment

by:1jaws
ID: 37803660
thanks that works!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now