$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:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:59
To: [EMAIL PROTECTED]
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

Reply via email to