Issue #16091 has been updated by thiaguerd (thiago feitosa).


shyouhei (Shyouhei Urabe) wrote:
> Really sorry that I have to say I don't understand this report at all.  Please tell us about your problem a bit more in detail.

the replacement doesn't happen

try in python and see the diff
```
a = "test ?"
b = "?"
c = "\\&"
a.replace(b,c)
```

----------------------------------------
Bug #16091: gsub
https://bugs.ruby-lang.org/issues/16091#change-80539

* Author: thiaguerd (thiago feitosa)
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.6.2p47 (2019-03-13 revision 67232) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
```ruby
a = "test ?"
b = "?"
c = "\\&"
a.gsub(b,c)
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>