Bugs item #1186, was opened at 2004-12-10 23:11
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1186&group_id=426

Category: Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kazuhiro Saga (sagak)
Assigned to: Nobody (None)
Summary: String#subꯥ樥??
Initial Comment:
?㾦佨
???

???佨??rubyforge㦾??
??\#?置孫??\&?1㩮殷???丮衮??屫???

> puts 'abcde'.sub(/c/, '\&')
abcde

> puts 'abcde'.sub(/c/, '\&')
abcde

> puts 'abcde'.sub(/c/, '\\&')    ab\cde 欥?
ab\&de

> puts 'abcde'.sub(/c/, '\\&')   ab\cde 欥?
ab\&de

> puts 'abcde'.sub(/c/, '\\\&')  ab\cde 欥?
ab\cde

ruby 1.8.2 (2004-11-06) [i386-mswin32]
Windows2000


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1186&group_id=426