にっき

2006/08/25 19:01:27

くりっかぶる


今週はおうちのりふぉ〜む開始で電気や水道や回線がちょくちょく止まったり
おうちに帰れるのが日付が変わる直前だったりですてきにどたばたにう(つx;【みかん

とりあえずそんなことはおいといて☆
あんまりにもへっぽこぷぅだった自動りんく機能をりにうあるしようかなぁ?
ってことでさっそくちゃれんぢ☆ヾ(・x・。☆り



せっかくだからURLの形式を規定してるRFC1738を参考に・・・
HTTP
httpurl = "http://" hostport [ "/" hpath [ "?" search ]]

 hostport = host [ ":" port ]
  host = hostname | hostnumber
   hostname = *[ domainlabel "." ] toplabel
    domainlabel = alphadigit | alphadigit *[ alphadigit | "-" ] alphadigit
     alphadigit = alpha | digit
      alpha = lowalpha | hialpha
       lowalpha = a-z
       hialpha  = A-Z
      digit = 0-9
    toplabel = alpha | alpha *[ alphadigit | "-" ] alphadigit
     alpha = lowalpha | hialpha
      lowalpha = a-z
      hialpha  = A-Z
     alphadigit = alpha | digit
      alpha = lowalpha | hialpha
       lowalpha = a-z
       hialpha  = A-Z
      digit = 0-9
   hostnumber = digits "." digits "." digits "." digits
    digits = 1*digit
     digit = 0-9
  port = digits
   digits = 1*digit
    digit = 0-9

 hpath = hsegment *[ "/" hsegment ]
  hsegment= *[ uchar | ";" | ":" | "@" | "&" | "=" ]
   uchar = unreserved | escape
    unreserved = alpha | digit | safe | extra
     alpha = lowalpha | hialpha
      lowalpha = a-z
      hialpha  = A-Z
     digit = 0-9
     safe  = "$" | "-" | "_" | "." | "+"
     extra = "!" | "*" | "'" | "(" | ")" | ","
    escape = "%" hex hex
     hex = digit | A-F | a-f
      digit = 0-9

 search
  hsegment= *[ uchar | ";" | ":" | "@" | "&" | "=" ]
   uchar = unreserved | escape
    unreserved = alpha | digit | safe | extra
     alpha = lowalpha | hialpha
      lowalpha = a-z
      hialpha  = A-Z
     digit = 0-9
     safe  = "$" | "-" | "_" | "." | "+"
     extra = "!" | "*" | "'" | "(" | ")" | ","
    escape = "%" hex hex
     hex = digit | A-F | a-f
      digit = 0-9

FTP
ftpurl = "ftp://" login [ "/" fpath [ ";type=" ftptype ]]

 login = [ user [ ":" password ] "@" ] hostport
  user = *[ uchar | ";" | "?" | "&" | "=" ]
   uchar = unreserved | escape
    unreserved = alpha | digit | safe | extra
     alpha = lowalpha | hialpha
      lowalpha = a-z
      hialpha  = A-Z
     digit = 0-9
     safe  = "$" | "-" | "_" | "." | "+"
     extra = "!" | "*" | "'" | "(" | ")" | ","
    escape = "%" hex hex
     hex = digit | A-F | a-f
      digit = 0-9
  password = *[ uchar | ";" | "?" | "&" | "=" ]
   uchar = unreserved | escape
    unreserved = alpha | digit | safe | extra
     alpha = lowalpha | hialpha
      lowalpha = a-z
      hialpha  = A-Z
     digit = 0-9
     safe  = "$" | "-" | "_" | "." | "+"
     extra = "!" | "*" | "'" | "(" | ")" | ","
    escape = "%" hex hex
     hex = digit | A-F | a-f
      digit = 0-9

 fpath = fsegment *[ "/" fsegment ]
  fsegment = *[ uchar | "?" | ":" | "@" | "&" | "=" ]
   uchar = unreserved | escape
    unreserved = alpha | digit | safe | extra
     alpha = lowalpha | hialpha
      lowalpha = a-z
      hialpha  = A-Z
     digit = 0-9
     safe  = "$" | "-" | "_" | "." | "+"
     extra = "!" | "*" | "'" | "(" | ")" | ","
    escape = "%" hex hex
     hex = digit | A-F | a-f
      digit = 0-9

 ftptype = "A" | "I" | "D" | "a" | "i" | "d"


ついでにめ〜るあどれすを規定してるRFC822も☆
ほんとはRFC2821&RFC2822っておにうのもあるけど必要なのはめ〜るあどれすの書式だけだし・・・

email
addr-spec = local-part "@" domain

 local-part = word *("." word)
  word = atom / quoted-string
   atom = 1*<any CHAR except specials, SPACE and CTLs>
    CHAR = <any ASCII character>
    specials = "(" / ")" / "<" / ">" / "@" /  "," / ";" / ":" / "\" / <"> /  "." / "[" / "]"
    SPACE = <ASCII SP, space>
    CTL = <any ASCII control character and DEL>
   quoted-string = <"> *(qtext/quoted-pair) <">
    qtext = <any CHAR excepting <">,"\" & CR, and including linear-white-space>
     CHAR = <any ASCII character>
     CR = <ASCII CR, carriage return>
     linear-white-space = 1*([CRLF] LWSP-char)
    quoted-pair = "\" CHAR
     CHAR = <any ASCII character>

 domain = sub-domain *("." sub-domain)
  sub-domain = domain-ref / domain-literal
   domain-ref = atom
    atom = 1*<any CHAR except specials, SPACE and CTLs>
     CHAR = <any ASCII character>
     specials = "(" / ")" / "<" / ">" / "@" /  "," / ";" / ":" / "\" / <"> /  "." / "[" / "]"
     SPACE = <ASCII SP, space>
     CTL = <any ASCII control character and DEL>
   domain-literal = "[" *(dtext / quoted-pair) "]"
    dtext = <any CHAR excluding "[","]", "\" & CR, & including linear-white-space>
     CHAR = <any ASCII character>
     CR = <ASCII CR, carriage return>
     linear-white-space = 1*([CRLF] LWSP-char)
    quoted-pair = "\" CHAR
     CHAR = <any ASCII character>


 ・
  ・
http&https&ftp&ftps
(http|ftp)s?:\/\/[\da-zA-Z]+([\da-zA-Z\.\-@:]*[\da-zA-Z])*\/?[\w#&\-=~@\+;:,\.\/\?]*

め〜るあどれす
[\w\-]+(\.[\w\-]+)*@[\da-zA-Z]+([\da-zA-Z\.\-]*[\da-zA-Z])*

  ・
 ・

なんだかまとめたらすてきなことになったからこれでじゅ〜ぶんだよね?(´ω`;【みかん
日本語どめいんみたいにRFCを無視してるのは見なかった方向で☆
RFCに準拠した描き方でもちゃんとあくせすできるんだし・・・
っていうかまだ日本語どめいんなんてあるのかなぁ?
かなり投売りなかんじするんだけど・・・

にゃ・・・
そ〜す見て思い出したけどめ〜るあどれすのお〜とりんくはやめたの忘れてたにう(´ω`;【みかん
おまけでtargetもかっとしてとりあえず変更完了ってことで☆


こめんと

こめんとする?



 
投稿された内容の著作権はこめんとの投稿者に帰属するっぽいです☆
また,現在 IE6 以下で Sleipnir,Lunascape,Donut じゃないゆ〜ざえ〜じぇんとからの描き込みを制限してますです☆
該当しちゃうかたはてきとうにゆ〜ざえ〜じぇんとを偽装しちゃってくださいです(´ω`;【みかん
さぶこんてんつ
前月 2024年 4月 翌月
  1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
       
             
  • あじ あじ
  • ED ED
  • えでん えでん
  • えれふぃ えれふぃ
  • ぐらぶれ ぐらぶれ
  • etc etc
  • にっき にっき

あわせて読みたい

先頭に戻る
めにう 先頭に戻る