Skip to content

Instantly share code, notes, and snippets.

@steve-ayerhart
Created March 28, 2012 18:23
Show Gist options
  • Save steve-ayerhart/2229055 to your computer and use it in GitHub Desktop.
Save steve-ayerhart/2229055 to your computer and use it in GitHub Desktop.
<JID> ::= [<node>"@"]<domain>["/"<resource>]
<node> ::= <conforming-char>[<conforming-char>]*
<domain> ::= <hname>["."<hname>]*
<resource> ::= <any-char>[<any-char>]*
<hname> ::= <let>|<dig>[[<let>|<dig>|"-"]*<let>|<dig>]
<let> ::= [a-z] | [A-Z]
<dig> ::= [0-9]
<conforming-char> ::= #x21 | [#x23-#x25] | [#x28-#x2E] |
[#x30-#x39] | #x3B | #x3D | #x3F |
[#x41-#x7E] | [#x80-#xD7FF] |
[#xE000-#xFFFD] | [#x10000-#x10FFFF]
<any-char> ::= [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment