RE: [PHP] Regex function needed
| From: | Douglas Maclaine-cross | Date: | Thu, 07 Feb 2002 23:28:20 +0000 |
| Subject: | RE: [PHP] Regex function needed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-83930@lists.php.net to get a copy of this message | ||
$string = ereg_replace("[A-Za-z']{1,3}", "", $string); // don't forget
"I'm"
I haven't checked but something like this.
-----Original Message-----
From: Michael Kimsal [mailto:michael@tapinternet.com]
Sent: Friday, February 08, 2002 9:59
To: php-general@lists.php.net
Subject: [PHP] Regex function needed
Looking for a regex (preg or ereg) to remove
all 1, 2 and 3 character words.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php