Trunk \w match

e$BEOJUE/Li$G$9!#e(B

Trunk e$B$Ne(B \w e$B$N%^%C%A$,4A;z$GF0:n$7$F$$$J$$$h$&$G$9!#e(B

$ ruby -v
ruby 1.9.2dev (2010-02-09) [i686-linux]
------- e$B%5%s%W%k%3!<%Ie(B
kstr = “e$B4A;z%3!<%Ie(BEUC”

if kstr =~ /^(\w+)/
p $1
end
------- e$B<B9T7k2Le(B
$ ruby -Ke /tmp/j.rb
$

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:40359] trunk \w match”
on Tue, 9 Feb 2010 15:42:14 +0900, WATANABE Tetsuya
[email protected] writes:

|Trunk e$B$Ne(B \w e$B$N%^%C%A$,4A;z$GF0:n$7$F$$$J$$$h$&$G$9!#e(B

Sun Aug 16 00:30:33 2009e$B$NJQ99$Ge(B \d, \s e$B$*$h$Se(B \w
e$B$,e(BASCIIe$B$Ne(B
e$BHO0O$GF0:n$9$k$h$&$KJQ99$K$J$C$F$^$9!#e(B[ruby-dev:39026]e$B$G$9$M!#e(B
[email protected]!"[email protected]$5$l$F$$$?$N$Oe(B \d [email protected]$1$J$s$G$9$,!"$=$NB>$K$De(B
e$B$$$F$b!Ve(BPerle$B$K9g$o$;$k!W$H$$$&H=CG$,$5$l$?$h$&$G$9!#e(B

e$B$h$Me(B e$B!de(B [email protected]@%$5$s!#e(B

e$B8D?ME*$K$Oe(B \w e$B$He(B \s e$B$O0-1F6A$,>/$J$$$H;W$$$^$7$?$,!#e(B

e$BEOJUE/Li$G$9!#e(B

e$B>pJs$"$j$,$H$&$4$6$$$^$9!#e(B

e$B;EMMJQ99$J$N$G$9$M!#N;2r$7$^$7$?!#e(B

\d e$B$N?t;z$N>l9g$N%^%C%A$N5-=RNL$O$9$/$J$$$N$Ge(B
e$B=q$-49$($O3Z$J$N$G$9$,!"e(B\w e$B$K$D$$$F$O!“4A;z%3!<%Ie(B
e$B$K$h$C$FO"B3$7$F$$$k$h$&$J=q$-J}$,ITE,Ev$K$J$k$He(B
e$B;W$o$l$k$N$G!”$I$&BeMQ$7$F$$$$$+G:$_$^$9!#e(B

e$B$J$K$+$$$$%"%$%G%#%"$,$"$k$+$?$,$$$^$7$?$i65$($Fe(B
e$B$/[email protected]$5$$!#e(B

\w e$B$r4A;z%3!<%I$N%^%C%A$9$k$3$H$r4|BT$9$k>l9g$Ne(B
e$BBeMQ%3!<%I$H$7$Fe(B

[e$B4A;z%3!<%I$N:G=ie(B-e$B4A;z%3!<%I$N=*$o$je(B]

e$B$J$I$,$"$j$^$9!#e(BEUC-JP e$B$J$I$O$3$l$G=q$1$J$/$be(B
e$B$J$$$N$G$9$,!"B>$N4A;z%3!<%I$GMxMQ$7$?$$?M$b!"e(B
e$B$3$N5-=R$,$=$N$^$^;H$($k$G$7$g$&$+e(B?

2010e$BG/e(B2e$B7ne(B9e$BF|e(B16:44 Yukihiro M.
[email protected]:

[email protected]@%$G$9!#e(B

2010/2/9 Yukihiro M. [email protected]:

e$B$$$F$b!Ve(BPerle$B$K9g$o$;$k!W$H$$$&H=CG$,$5$l$?$h$&$G$9!#e(B

e$B$h$Me(B e$B!de(B [email protected]@%$5$s!#e(B

e$B8D?ME*$K$Oe(B \w e$B$He(B \s e$B$O0-1F6A$,>/$J$$$H;W$$$^$7$?$,!#e(B

e$B$=$&$G$9$M!#e(B
3e$B$D%;%C%[email protected]$H;W$C$F$$$F!"e(J\d [email protected]$1e(B ASCII
e$B$K$H$$$&$N$O9M$($b$7$^$;$s$G$7$?!#e(B
e$B:#9M$(D>$7$F$b!"[email protected]$1La$9$N$O:.Mp$N$b$H$K;W$$$^$9!#e(B

e$B$J$*!“e(Byugui e$B$5$s$,e(B 1.9.1 e$B$N=i4|$N%Q%C%A%j%j!<%9$Ge(B
e(J\d \s \w e$B$,e(B Unicode e$B;V8~$J$N$Oe(B
e$B%P%[email protected]$HH=CG$7$?$?$a!”:G?7$N%Q%C%A%j%j!<%9$G$Oe(B ASCII
e$B;V8~$K:9$7BX$o$C$F$$$^$9!#e(B

2010/2/9 WATANABE Tetsuya [email protected]:

e$B$/[email protected]$5$$!#e(B

\w e$B$r4A;z%3!<%I$N%^%C%A$9$k$3$H$r4|BT$9$k>l9g$Ne(B
e$BBeMQ%3!<%I$H$7$Fe(B

[e$B4A;z%3!<%I$N:G=ie(B-e$B4A;z%3!<%I$N=*$o$je(B]

e$B$J$I$,$"$j$^$9!#e(BEUC-JP e$B$J$I$O$3$l$G=q$1$J$/$be(B
e$B$J$$$N$G$9$,!"B>$N4A;z%3!<%I$GMxMQ$7$?$$?M$b!"e(B
e$B$3$N5-=R$,$=$N$^$^;H$($k$G$7$g$&$+e(B?

e$B$3$NJ8>O$+$i$G$O??$K4|BT$9$k$b$N$,2?$+H=CG$7$+$M$^$9$,!“e(B
e(J\p{Alphabetic} e$B$H$+e(B e(J\p{Ideographic}
e$B$”$?$j$,5a$a$k$b$N$J$s$8$c$J$$$+$H;W$$$^$9!#e(B

/\p{Alphabetic}/ =~ "e$B$“e(B” #=> 0
/\p{Alphabetic}/=~“e$B4Ae(B” #=> 0
/\p{Ideographic}/ =~ "e$B$“e(B” #=> nil
/\p{Ideographic}/=~“e$B4Ae(B” #=> 0

Unicode [email protected]$C$?$ie(B[[:word:]]e$B$+$Je(B
/[[:word:]]/ =~ "e$B$“e(B”.encode(“euc-jp”) #=> 0

e$BEOJUE/Li$G$9!#e(B

[email protected]$"$j$,$H$&$4$6$$$^$9!#e(B

e$B$3$NJU$N;EMM$,=q$+$l$?$b$N$O$"$j$^$;$se(B
e$B$G$7$g$&$+e(B? e$B<j;}$A$N%9%/%j%W%H$rJQ99$9$k$N$Ke(B
e$B;29M$K$5$;[email protected]$-$?$$$N$G$9!#e(B

e$B=q$+$l$F$$$kFbMF$+$i!"e(J\p{Ideographic} e$B$Oe(B
Unicode e$B$7$+;H$($J$$$h$&$G$9$,!"e(BEUC-JP
e$B$J$I$G$O;H$($k$h$&$K$J$i$J$$$N$G$7$g$&$+e(B?
[[:word:]] e$B$Oe(B Unicode e$B$G$O;H$($J$$$N$G$7$g$&$+e(B?

e$B$J$I3NG’$7$?$$$3$H$,$"$k$N$G!"$9$$$^$;$s$,e(B
e$B$h$m$7$/$*4j$$$7$^$9!#e(B

2010e$BG/e(B2e$B7ne(B9e$BF|e(B17:53 NARUSE, Yui [email protected]:

e$BEOJUE/Li$G$9!#e(B

e$B>pJs$"$j$,$H$&$4$6$$$^$9!#e(B

Unicode e$B$O$$$m$$$mJXMx$K$J$C$F$$$k$s$G$9$M!#e(B

e$B$3$N%I%-%e%a%s%H$r;29M$K$5$;[email protected]$-$^$9!#e(B

2010e$BG/e(B2e$B7ne(B9e$BF|e(B20:10 NARUSE, Yui [email protected]:

[email protected]@%$G$9!#e(B

(2010/02/09 18:33), WATANABE Tetsuya wrote:

e$B$3$NJU$N;EMM$,=q$+$l$?$b$N$O$"$j$^$;$se(B
e$B$G$7$g$&$+e(B? e$B<j;}$A$N%9%/%j%W%H$rJQ99$9$k$N$Ke(B
e$B;29M$K$5$;[email protected]$-$?$$$N$G$9!#e(B

e$B8=>u$O0J2<$,0lHV$^$H$^$C$F$^$9$+$M!#e(B
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/doc/re.rdoc?revision=24992&view=markup

e$B=q$+$l$F$$$kFbMF$+$i!"e(B\p{Ideographic} e$B$Oe(B
Unicode e$B$7$+;H$($J$$$h$&$G$9$,!"e(BEUC-JP
e$B$J$I$G$O;H$($k$h$&$K$J$i$J$$$N$G$7$g$&$+e(B?

Ideographic e$B$H$+$NDj5A$,e(B Unicode
e$B$r;2>H$7$F$$$k$N$G$J$i$J$$$G$7$g$&!#e(B
e$B%%l%%lDj5A$H$+$7$?$/$J$$$N$G!#e(B

[[:word:]] e$B$Oe(B Unicode e$B$G$O;H$($J$$$N$G$7$g$&$+e(B?

e$B$3$A$i$O%(%s%3!<%G%#%s%0Ld$o$:;H$($^$9!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs