Strip non-alphanumerics from beginning and end?
| From: | Brian Dunning | Date: | Sat, 05 Aug 2006 02:12:18 +0000 |
| Subject: | Strip non-alphanumerics from beginning and end? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-240177@lists.php.net to get a copy of this message | ||
Is there a command to strip all non-alphanumerics form the beginning and end of a string?
Ex.: '&^%kj.h,kj..*(' becomes 'kj.h,kj'