Oh, OK, that makes sense, but why is that checking people's names -- because we're doing them in the form:
John H <johnh@blah.com>
or something?
So just chuck out the nice bit and just reduce it to the bare address is the quick solution.
Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
Oh, OK, that makes sense, but why is that checking people's names -- because we're doing them in the form:
John H <johnh@blah.com>
or something?
So just chuck out the nice bit and just reduce it to the bare address is the quick solution.
Yes, that's what we're checking.
I can't read the regexp well enough to know what to toss, though. Just the other modules that'll need to be changed.
I can't read the regexp well enough to know what to toss, though.
Oh I didn't even look at it properly, I see the problem. It's designed to include optional non-email text.
Easy peasy:
[a-z ]
at the start is "a sequence of letters or spaces" so it should be enough just to put in
[a-z.' -]
which I just tested, and matches
P-M.M' Marcontell
which contains all the possible punctuation in people's names, I think.
(There's the underscore....)
Who has an underscore in their name?
But yeah, if that's an issue, put that in between the brackets as well. Does anyone have a number in their name?
If they do, then maybe we want
[\\w .'-]
which will match that well-known Buffista
p.m-m'm_ m4rc0nt3ll
because the \\w includes all letters, numbers and the underscore.
Who has an underscore in their name?
Jenny_G comes to mind.
I mean, really, there's no limit to the punctuation, isn't there? Didn't a /mieskie register (and get booted, but, yeah, well)? Someone could register with an asterisk. Maybe someone has.
Spawn1, DCM1101 (Paul's user name), and a couple others I think use numbers. Anyone with ~? I know they were popular before WX let you lc your name without them.
Also, FUCKERS!!!!!
We seem to have a lot of characters in usernames that I wouldn't have expected.
It it's really that complicated, I think the concept of email address needs to be redefined to be "the bits wrapped around the @", and put the username somewhere else.
Not that you can't write a regular expression to say "anything at all goes here" but then you have to start working from the other end, "anything at all except for the @ symbol", etc.
Ooo! Did I mention we have people with @ in their names?