General

Profile

cody-soultz (Cody Soultz)

  • Login: cody-soultz
  • Registered on: 09/06/2016
  • Last sign in: 09/06/2016

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

09/06/2016

07:53 PM Ruby Misc #12730: Documentation String.slice!(regex)
James Britt Pointed out to me that:
> The example in the docs shows a sequence of operations on the same string instance. "slice!" will modify the receiver, so the next operation is working on a changed string.
> ...
So this issue sh...
cody-soultz (Cody Soultz)
07:43 PM Ruby Misc #12730 (Rejected): Documentation String.slice!(regex)
at http://ruby-doc.org/core-2.2.0/String.html#method-i-slice-21
In the example
string = "this is a string"
string.slice!(/s.*t/) #=> "sa st"
When ran in irb the result is different than shown because the regex starts at the fir...
cody-soultz (Cody Soultz)

Also available in: Atom