From: "Bronislav Klučka" <[EMAIL PROTECTED]> > > I need someone to tell me exactly what this regular-expression means: > > if(ereg("[^ \t\n]",$val)) { > > // do the job here > > This condition is true if there is no space, new line or tabulator in $val
Actually, the regular expression will match anything that is NOT a space, tab, or newline. That's what the ^ character does (negates the matching). So, if $val has anything that is NOT a space, newline, or tab in it, then the ereg() function will return true. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php