M. Sokolewiczz, Stut, Thank you for your answers. Both are very helpful.I will use the trim() method, although it's helpful to know the regular expression for learning purposes.
Unless I can find a way to make things much more complicated. Your time and advice is much appreciated. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php