View Single Post
Old Mar 27th, 2008, 4:28 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Re: Regex, or I'm thick

What that expression will do is look for one character of whitespace at the start of a string. Try a string with a space in front and it should match.

Try this:
@"^\s+$"
^ = beginning of string
\s = whitespace
+ = there should be one or more of the previous entity
$ = end of string
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote