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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php