![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 208
Rep Power: 4
![]() |
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? |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |