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
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...