Space in regex

From: Date: Thu, 16 Nov 2006 21:08:34 +0000
Subject: Space in regex
Groups: php.general 
Request: Send a blank email to php-general+get-244749@lists.php.net to get a copy of this message
I'm trying to match alphanumeric characters, some common symbols, and spaces. Why does this NOT match strings containing spaces?: [A-Za-z0-9\'.&-:underscore::space:] I've also tried these, that also fail to match strings containing spaces: [A-Za-z0-9\'.&- :underscore:] [A-Z a-z0-9\'.&-:underscore:] [:space:A-Za-z0-9\'.&-:underscore:] All these regexes match strings containing the specified characters, but none of them match strings with spaces. Dotan Cohen http://what-is-what.com/ http://technology-sleuth.com/

« previous php.general (#244749) next »