^ inside [] means "not the following chars", so your expression means:
if ($val contains no space " ", no tab "\t" and no newline "\n") { //do the job ... }
Regards, Matthias
Ben wrote:
I need someone to tell me exactly what this regular-expression means: if(ereg("[^ \t\n]",$val)) { // do the job here }
I'm looking for an intermittent bug, and I need to understand this to make sure I have found the bug.
Thanks
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php