I don't have that much experience with preg* functions but if that's exactly
how you've got it in your code, shouldn't there be no spaces??
that is:
preg_match("/http:\/\/ | [[:space:]]/i",$valToEval);
* *
\-\----both of these should be removed ?????
-----Original Message-----
From: Carl E Shmidt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 11:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] regex expession problems
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php