Issue #5208 has been updated by Ken Takata.


> Ruby ???? \w ?????? \p{Word} ???????????????????????????????????\b ??? \p{Word} ????????????????????????????????????

?????????????????????????????????????????????????????????Perl 5.14???Python 2.7?????
\b, \B ??? \w, \W ????????????????????(?u) ???????????????????????????????\p{Word}??????
??????以?????????????????????????確????????????????????


> (?(cond)yes|no) ???????欲????????????????????????????????????欲??????????
> ?????????????????? Ruby ??正覨?????????????????????????????????????????????????????????????

????????????鬼???鬼??????Ruby???????込????????????????????????????????????????????
Ruby??正覨???????????????????????????????????????????????????
??????Ruby??????????????????????????????????????????課??????

???????Onigmo 5.10.6???以????????????????追???????????????????
??正覨?
???- \K, \R, \X, (?(cond)yes|no), \g<0>, \g<+n>, (?au)
???- Perl 5.10?????????????????????Ruby????????????????????
???Shift_JIS, EUC-JP???????????????????????????大??????????????索?対????
???Shift_JIS, EUC-JP????\p{Han}, \p{Latin}, \p{Greek}, \p{Cyrillic} ??対????
????????
???- ???????????????????????????????
???- http://redmine.ruby-lang.org/issues/3568 ????????????????????????????度?????????

???Perl 5.14????????????
???- (?(cond)yes|no) ???件???????読?????読??????使?????????
???- (?|...), \o{nnn} ????対????
----------------------------------------
Bug #5208: \b and \B don't match properly
http://redmine.ruby-lang.org/issues/5208

Author: Ken Takata
Status: Assigned
Priority: Normal
Assignee: Yui NARUSE
Category: 
Target version: 
ruby -v: ruby 1.9.2p136 (2010-12-25 revision 30365) [i386-mswin32]


????????????????????????????

\b, \B???正?????????????????????????????????????????????????????
ruby 1.9.2?????\w??????????????????????????????????????????????鬼????修正???????????????????????????
\b, \B?????????\w, \W??対???????????????修正??????????????????????????

???:
C:\>type x.rb
#! ruby -Ks
p /\B/ =~ "?????????abc"
p $'
p /\b/ =~ "?????????abc"
p $'

C:\>ruby x.rb
1
"??????abc"
0
"?????????abc"

??????????????:
C:\>ruby x.rb
0
"?????????abc"
3
"abc"


?????????????????????????鬼???????????????Perl 5.14????????????(?au)???\w????
??????????????????????????????????御????????????????????????????
https://github.com/k-takata/Onigmo


-- 
http://redmine.ruby-lang.org