nDiki : uric

uric - URI character(s)

RFC2396 2 で定義されている、URI で使える文字。

なお URI に関する最新の RFC3986 では uric の規則はなくなっている。

RFC2396

syntax

 uric = reserved | unreserved | escaped
 reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
            "$" | ","
 unreserved = alphanum | mark
 alphanum = alpha | digit
 alpha = lowalpha | upalpha
 lowalpha = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" |
            "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" |
            "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z"
 upalpha =  "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" |
            "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" |
            "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"
 digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |
         "8" | "9"
 mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
 escaped     = "%" hex hex
 hex         = digit | "A" | "B" | "C" | "D" | "E" | "F" |
               "a" | "b" | "c" | "d" | "e" | "f"

Perl 正規表現だと

 ([!$\x26-\x3b=\x3f-\x5a_\x61-\x7a~]|%[0-9a-zA-Z]{2})

(http://www.naney.org/)

) は uric に含まれるので URLを () で括ると最後の)もURLと誤認される可能性あり。

URI で使えない文字

RFC2396 2.4.3 Excluded US-ASCII Characters で示されている。

 control = <US-ASCII coded characters 00-1F and 7F hexadecimal>
 space   = <US-ASCII coded character 20 hexadecimal>
 delims  = "<" | ">" | "#" | "%" | <">
 unwise  = "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`"

octet [RFC2396]

HexCharuric?pchar?
00NUL \0xcontrol
01SOHxcontrol
02STXxcontrol
03ETXxcontrol
04EOTxcontrol
05ENQxcontrol
06ACKxcontrol
07BEL \axcontrol
08BS \bxcontrol
09HT \txcontrol
0ALF \nxcontrol
0BVT \vxcontrol
0CFF \fxcontrol
0DCR \rxcontrol
0ESOxcontrol
0FSIxcontrol
10DLExcontrol
11DC1xcontrol
12DC2xcontrol
13DC3xcontrol
14DC4xcontrol
15NAKxcontrol
16SYNxcontrol
17ETBxcontrol
18CANxcontrol
19EMxcontrol
1ASUBxcontrol
1BESCxcontrol
1CFSxcontrol
1DGSxcontrol
1ERSxcontrol
1FUSxcontrol
20SPACExspace
21!omarko
22"xdelims
23#xdelims
24$oreservedo
25%xdelims
26&oreservedo
27'omarko
28(omarko
29)omarko
2A*omarko
2B+oreservedo
2C,oreservedo
2D-omarko
2E.omarko
2F/oreserved(g)
300odigito
311odigito
322odigito
333odigito
344odigito
355odigito
366odigito
377odigito
388odigito
399odigito
3A:oreservedo
3B;oreserved
3C<xdelims
3D=oreservedo※1
3E>xdelims
3F?oreserved(g)
40@oreservedo
41Aoupalphao
42Boupalphao
43Coupalphao
44Doupalphao
45Eoupalphao
46Foupalphao
47Goupalphao
48Houpalphao
49Ioupalphao
4AJoupalphao
4BKoupalphao
4CLoupalphao
4DMoupalphao
4ENoupalphao
4FOoupalphao
50Poupalphao
51Qoupalphao
52Roupalphao
53Soupalphao
54Toupalphao
55Uoupalphao
56Voupalphao
57Woupalphao
58Xoupalphao
59Youpalphao
5AZoupalphao
5B[xunwise
5C\xunwise
5D]xunwise
5E^xunwise
5F_omarko
60`xunwise
61aolowalphao
62bolowalphao
63colowalphao
64dolowalphao
65eolowalphao
66folowalphao
67golowalphao
68holowalphao
69iolowalphao
6Ajolowalphao
6Bkolowalphao
6Clolowalphao
6Dmolowalphao
6Enolowalphao
6Foolowalphao
70polowalphao
71qolowalphao
72rolowalphao
73solowalphao
74tolowalphao
75uolowalphao
76volowalphao
77wolowalphao
78xolowalphao
79yolowalphao
7Azolowalphao
7B{xunwise
7C|xunwise
7D}xunwise
7E~omarko
7FDELxcontrol

※1 予約されている。

no diary

About Me

Naney Naney (なにい)です。株式会社ミクシィで SNS 事業の部長をしています。

nDiki1999年1月に始めたコンピュータ日誌を前身とする NaneyWeb 日記(兼パーソナルナレッジベース)です。ちょっとしたノートは nNote にあります。

※内容は個人的見解であり所属組織とは関係ありません。

月別インデックス
Process Time: 0.04725s / load averages: 0.20, 0.74, 0.78
nDiki by WATANABE Yoshimasa (Naney)
Powered by DiKicker