
wayne at midwestcs
Feb 3, 2004, 7:35 PM
Post #4 of 4
(1052 views)
Permalink
|
|
Re: delim = '.' | '-' | '+' | ',' | '|' | '_' .... and more?
[In reply to]
|
|
[.I meant this to go to the list, but I sent it to only Meng] In <20040203173640.GJ7601 [at] dumbo> Meng Weng Wong <mengwong [at] dumbo> writes: > delim = '.' | '-' | '+' | ',' | '|' | '_' > > I think that's actually a little too specific; I would be okay with any > non-ALPHA char. What do people think? Well, you would need to exclude things like } and numbers. I assume you would also have to exclude control characters. Things like the quote characters might get people into trouble, as would () and <>. I suspect that the RFCs have something to say about what is valid. Hmmm... RFC2821 says that the domain name can only be made up of [a-z0-9.-] The local part is much more vague. It is defined as "atext", which isn't defined in RFC2821. RFC2822 defines atext as: atext = ALPHA / DIGIT / ; Any character except controls, "!" / "#" / ; SP, and specials. "$" / "%" / ; Used for atoms "&" / "'" / "*" / "+" / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{" / "|" / "}" / "~" Note that "," and ";" are not allowed. > It's intended to support the newfangled username+something [at] domai > convention, where you can tag +something on the end of your username. > > Some people use +, others use -, so we shouldn't be too strict here. True, but for simplicity and safety sake, I'm not too excited about having delimeters besides '+', '-', '=', '.', and "_". -wayne ------- To unsubscribe, change your address, or temporarily deactivate your subscription, please go to http://v2.listbox.com/member/?listname@Ë`Ì{5¤¨wâÇSÓ°)h
|