Re: preg_replace() question
| From: | Chris | Date: | Tue, 17 Mar 2009 22:47:32 +0000 |
| Subject: | Re: preg_replace() question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290193@lists.php.net to get a copy of this message | ||
PJ wrote:
1. What is the overhead on preg_replace?Compared to what? If you write a 3 line regex, it's going to take some processing.
2. Is there a better way to strip spaces and non alpha numerical characters from text strings? I suspect not... maybe the Shadow does ???For this, preg_replace is probably the right option. -- Postgresql & php tutorials http://www.designmagick.com/