Thanks Bronislav for your answer but this can't be it as the following test code passes validation: <?Php $val = "\t test \n"; if(ereg("[^ \t\n]",$val)) { echo 'In here!!'; } echo '<BR>' . nl2br($val); ?>
Anyone has an idea? "Bronislav klučka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This condition is true if there is no space, new line or tabulator in $val > > > > 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 > > > > > > S pozdravem > Bronislav Klucka > > ----------------------------=[ pro2-soft.com ]=---------------------------- > Bronislav Klucka Pro2-Soft > +420 605 582 922 [EMAIL PROTECTED] > > * Windows & Web applications, Computer training http://pro2-soft.com > -------------------------------------------------------------------------- - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php