Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Mar 27th, 2008, 1:06 PM   #1
Arla
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 208
Rep Power: 4 Arla is on a distinguished road
Regex, or I'm thick

Can't for the LIFE of me figure how to do this, and it seems like it would be stupidly simple.

I want a REGEX that will tell me if a string contains anything other than whitespace.

I've tried @"\s" but that just looks for a single whitespace (so a single whitespace anywhere in the text), @"\s*" but that seems to match anything (and everything?)

Where am I going wrong? I tried @"\s*^\S" but that again seems to match anything, what the hell am I doing wrong?
Arla is online now   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regex help titaniumdecoy Other Programming Languages 1 Nov 20th, 2007 6:41 PM
RegEx problem.. cyphix PHP 4 Mar 4th, 2007 6:24 AM
Email validating regex Jimbo PHP 6 Jul 6th, 2006 2:58 PM
regex (preg_replace) parsing para PHP 2 Dec 31st, 2005 6:30 PM
Regex help Simon Gray PHP 10 Sep 7th, 2005 11:02 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC