| Hi,
 Im trying to figure out how miniBB is doing user validation, while at the same time learn more about regular expressions. I think I understand it now, but there are two small details in bb_func_checkusr.php that bug me:
 
 1) What is the meaning of the last backslash in
 
 $userRegExp="#^[".$userRegName."]{3,40}$#"
 
 Doesn't this escape the end-of-string anchor, and if so - why do that?
 
 2)  Why use preg_match for the user and eregi for everything else?
 
 Not really critical, but clarification would be much appreciated...
 
 Thanks,
 
 Carlo
 |