matching some first part of word

From: Date: Sun, 11 May 2003 08:17:06 +0000
Subject: matching some first part of word
Groups: php.general 
Request: Send a blank email to php-general+get-147152@lists.php.net to get a copy of this message
Dear Sirs, I would like to find words which are starting with "ye", I try to use preg_match and many friends help from this form. But I have no idea can I make above idea with perg_match. basicaly I am using like this; if (preg_match("/\b(ye)\b/i", $mesage, $matches)) { but this is find complete "ye" word. I want to find words which are strating with "ye". Any idea how can I make? Best Regards

« previous php.general (#147152) next »