RE: [PHP] regex expession problems

From: Date: Thu, 28 Mar 2002 00:47:33 +0000
Subject: RE: [PHP] regex expession problems
Groups: php.general 
Request: Send a blank email to php-general+get-90454@lists.php.net to get a copy of this message
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:lanvaledsl@earthlink.net] Sent: Thursday, March 28, 2002 11:41 AM To: php-general@lists.php.net 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

« previous php.general (#90454) next »