regex expession problems
| From: | Carl E Shmidt | Date: | Thu, 28 Mar 2002 00:40:54 +0000 |
| Subject: | regex expession problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90453@lists.php.net to get a copy of this message | ||
But hey, who doesn't have em eh? Anyway, here's my predicament. I want to
look for either the string "http://" or for 1 or more spaces
in a string.
Here's the regex I've got
preg_match("/http:\/\/ | [[:space:]]/i",$valToEval);
I can get each test case working individually, but as soon as I combine
them, it no longer works. What's going on here?
Carl