>>>>> On Sun, 23 Mar 2003 06:14:08 +0100, Philip Newton <[EMAIL PROTECTED]> said:
> On Sat, 22 Mar 2003 19:14:21 +0100, [EMAIL PROTECTED] (Andreas J. > Koenig) wrote: >> I also relaxed the requirement for a valid username to /^[A-Z]{3,9}$/, > I suppose you mean /^[A-Z-]{3,9}$/ ? Hyphens are allowed in CPAN > usernames. (Though IIRC not as first or last character and not if you > have two consecutive hyphens.) Historically we allowed these IDs that do not match above regex: CHANG-LIU IBMTORDB2 IX JV NI-S P5P PERL4LIB RA WIN32 In contrast, currently /^[A-Z]{3,9}$/ is hardcoded into the registration code. So something like /^[A-Z][-A-Z]*[A-Z0-9]+$/ does match all existing IDs, but then the regex is missing the size restriction, which indeed is important. In principle we do not want to be restrictive but we also do not want an overly complicated regex. On balance, I think /^[A-Z]{3,9}$/ is a good compromise for future usernames, but I'm open to suggestions what the rule should be. -- andreas