[Bug #2374] URI.regexp('http') $B$,(B 'http://' $B$K%^%C%A$9$k(B

e$B%A%1%C%He(B #2374 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

(2009/12/31 23:54), Tanaka A. wrote:

2009e$BG/e(B12e$B7ne(B31e$BF|e(B23:47 Yui NARUSE [email protected]:

URI e$B$r@55,I=8=$G%Q!<%9$9$k$H$$$&H/A[<+BN$K$=$b$=$b<c43$NL5M}$,$"$k$h$&$K;W$&$N$G!"e(B
URI.regexp e$B$Oe(B obsolete e$B$K$7$^$;$s$+e(B

e$BL5M}$H$$$&$N$O6qBNE*$K$O$I$&$$$&OC$G$7$g$&!)e(B

e$B$^$:!"I,$:$7$b@55,I=8=$G$N%Q!<%9$,2DG=$J;v$,J]>Z$5$l$F$$$J$$;v$G$9!#e(B
e$B<B:]LdBj$H$7$F$O$?$$$F$$%Q!<%92DG=$J$N$G$9$,!“e(B
e$B$?$H$($Pe(B urn:isbn e$B$”$?$j$O$A$g$C$H2DG=$H$O8@$o$J$$$G$7$g$&!#e(B
http://www.din.or.jp/~ohzaki/regex.htm#ISBN

e$B<!$K!“%9%-!<%$K$h$C$F@55,I=8=$NCf?H$r@Z$jBX$($kI,MW$,$"$kE@$G$9!#e(B e$B8=>u$G$b%9%-!<%$rM?$($k;v$O$G$-$^$9$,!”$=$N7k2L$O$[$H$s$IJQ$o$j$^$;$s!#e(B
e$BM}6~$N>e$G$O$=$l$>$l@Z$jBX$($k$h$&$KJQ$($l$P$$$$$H$b8@$($^$9$,!“e(B
e$BD94|4V8=>u$GJ|CV$5$l$F$-$?$H$$$&8=<B$,$”$j$^$9!#e(B
e$B8=>u$O!"8DJL$N%9%-!<%^$K$D$$$F8@$($P8m$C$?@55,I=8=$rDs6!$7$F$$$k$o$1$G!“e(B
e$BM-32$G$”$k$h$&$K46$8$^$9!#e(B

e$B$5$i$K!"@55,I=8=$rJV$9$H$$$&e(B API e$B$O5,3J$N99?7$K<e$$$G$9!#e(B
URI e$BA4BN$K8@$($k;v$G$9$,!“FbIt<BAu$rO*=P$7$9$.$F$$$F!“e(B
e$B5,3J$N99?7$KBP1~$7$E$i$/$J$C$F$$$^$9!#e(B
URI.regexp e$B$N>l9g!”<hF@$7$?@55,I=8=$r%^%C%A$K;H$C$Fe(B $1
e$B$H$+$r<h$C$F$$$ke(B
e$B$&$A$OLdBj$”$j$^$;$s$,!"e(BRegexp#source
e$B$r8F$S;O$a$?=V4V8_49@-$N3NJ]$,e(B
e$B6K$a$F:$Fq$K$J$j$^$9!#e(B

e$B7k6I$N=j!“8=>u$KLdBj$,$”$k$,!“LdBj$,$J$$>uBV$r0];}$9$k$N$OBgJQ$G$”$j!“e(B
e$BJQ$($k$H8_49@-$KLdBj$,=P$k62$l$,$”$k$H$$$&$3$H$K$J$j$^$9!#e(B

e$B$G!"$o$?$7$N$3$l$X$NBP1~0F$H$7$F!"0J2<$rDs0F$9$k$H$$$&;v$G$9!#e(B

  • URI.regexp e$B$O8=>u$r;EMM$H$7$F$$$8$i$J$$e(B
  • e$BD94|E*$K$Oe(B obsolete e$B$H$7$F!"$-$j$N$$$$$H$3$m$GGQ;_e(B

http://redmine.ruby-lang.org/issues/show/2374

2010e$BG/e(B1e$B7ne(B1e$BF|e(B1:33 Yui NARUSE [email protected]:

e$B$^$:!"I,$:$7$b@55,I=8=$G$N%Q!<%9$,2DG=$J;v$,J]>Z$5$l$F$$$J$$;v$G$9!#e(B
e$B<B:]LdBj$H$7$F$O$?$$$F$$%Q!<%92DG=$J$N$G$9$,!“e(B
e$B$?$H$($Pe(B urn:isbn e$B$”$?$j$O$A$g$C$H2DG=$H$O8@$o$J$$$G$7$g$&!#e(B
Perl正規表現雑技

e$B$Y$D$K40A4$G$J$/$F$bLr$KN)$F$P$$$$$s$8$c$J$$$G$9$+$M$'!#e(B
e$B%F%-%9%H$NCf$+$ie(B URI
e$B$rC5$7$?$$$C$F$$$&$N$O$$$+$K$b$"$j$=$&$JOC$G$9$7!#e(B

e$B$J$*!"e(BIS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“FbIt<BAu$rO*=P$7$9$.$F$$$F!“e(B
e$B5,3J$N99?7$KBP1~$7$E$i$/$J$C$F$$$^$9!#e(B
URI.regexp e$B$N>l9g!”<hF@$7$?@55,I=8=$r%^%C%A$K;H$C$Fe(B $1 e$B$H$+$r<h$C$F$$$ke(B
e$B$&$A$OLdBj$”$j$^$;$s$,!"e(BRegexp#source e$B$r8F$S;O$a$?=V4V8_49@-$N3NJ]$,e(B
e$B6K$a$F:$Fq$K$J$j$^$9!#e(B

URI.regexp e$B$O5,3J$G;H$C$F$$$kHs=*C<5-9f$NL>A0$r;H$C$F$$$J$$$V$s!"e(B
e$B$`$7$m5,3J$N99?7$K$O6/$$5$$,$7$^$9!#e(B

e$B$J$!“e(Bsource
e$B$r;H$C$FCf?H$rD4$Y$k$N$O$”$+$i$5$^$KL5J]>Z$J46$8$,$7$^$9!#e(B
e$B6qBNE
$K!“e(Bsource e$B$r;H$C$F$$$F!“e(BURI.regexp
e$B$rJQ$($k$H:$$k$3$H$K$J$ke(B
e$B%”%W%j%1!<%7%g%s$C$F$”$k$s$G$9$+e(B?

e$B7k6I$N=j!“8=>u$KLdBj$,$”$k$,!“LdBj$,$J$$>uBV$r0];}$9$k$N$OBgJQ$G$”$j!“e(B
e$BJQ$($k$H8_49@-$KLdBj$,=P$k62$l$,$”$k$H$$$&$3$H$K$J$j$^$9!#e(B

e$B$G!"$o$?$7$N$3$l$X$NBP1~0F$H$7$F!"0J2<$rDs0F$9$k$H$$$&;v$G$9!#e(B

  • URI.regexp e$B$O8=>u$r;EMM$H$7$F$$$8$i$J$$e(B
  • e$BD94|E*$K$Oe(B obsolete e$B$H$7$F!"$-$j$N$$$$$H$3$m$GGQ;_e(B

e$B$=$N>l9g!“<B:]$Ke(B URI.regexp
e$B$r;H$C$F$$$k%”%W%j%1!<%7%g%s$O$I$N$h$&$KJQ99$9$ke(B
e$B$3$H$,?d>)$5$l$k$s$G$9$+!)e(B

(2010/01/01 12:29), Tanaka A. wrote:

2010e$B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&$K46$8$^$9!#e(B

e$B@55,I=8=$G$O5-=R$G$-$J$$2DG=@-$r9M$($k$J$i$`$7$m$=$l$OI,A3E*$J;EMM$J$N$G$Oe(B?
URI.regexp e$B$O$$$6$C$Q$K<h$j=P$7$F!“@5$7$$$+$I$&$+$O$5$i$Ke(B URI.parse e$B$G3NG’e(B
e$B$9$kI,MW$,$”$k$N$G$7$g$&!#e(B

e$B$J$k$[$I!#e(B
e$B$=$NL\E*$J$i$P!"e(BURI.scan(text, schemes) e$BEy$Ne(B API
e$B$K$7$?>e$G!“e(B
RFC 3986 Appendix C. Delimiting a URI in Context
e$B$K$”$k$h$&$J@^$jJV$7$Ne(B
e$B9MN8$bI,MW$J5$$b$7$J$$$G$b$J$$$G$9$,!#e(B

e$B$5$i$K!"@55,I=8=$rJV$9$H$$$&e(B API e$B$O5,3J$N99?7$K<e$$$G$9!#e(B
URI e$BA4BN$K8@$($k;v$G$9$,!“FbIt<BAu$rO*=P$7$9$.$F$$$F!“e(B
e$B5,3J$N99?7$KBP1~$7$E$i$/$J$C$F$$$^$9!#e(B
URI.regexp e$B$N>l9g!”<hF@$7$?@55,I=8=$r%^%C%A$K;H$C$Fe(B $1 e$B$H$+$r<h$C$F$$$ke(B
e$B$&$A$OLdBj$”$j$^$;$s$,!"e(BRegexp#source e$B$r8F$S;O$a$?=V4V8_49@-$N3NJ]$,e(B
e$B6K$a$F:$Fq$K$J$j$^$9!#e(B

URI.regexp e$B$O5,3J$G;H$C$F$$$kHs=*C<5-9f$NL>A0$r;H$C$F$$$J$$$V$s!"e(B
e$B$`$7$m5,3J$N99?7$K$O6/$$5$$,$7$^$9!#e(B

e$B2~$a$Fe(B URI.regexp e$B$Ne(B rdoc e$B$rFI$`$H!"e(B$1
e$BEy$N;HMQ$OHs%5%]!<%H$J$s$G$9$M!#e(B
e$B$J$i$P!"5,3J$N99?7$K$O6/$$$G$9$M!#e(B