General

Profile

tdrive (Stanislav Boldaev)

  • Login: tdrive
  • Registered on: 12/23/2019
  • Last sign in: 10/31/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 3 3

Activity

10/28/2025

09:10 AM Ruby Bug #21651 (Feedback): replacing a string with one backslash with two backslashes
ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [x86_64-linux]
ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [x86_64-linux]
```
irb(main):002> "\\".gsub("\\", "\\\\")
=> "\\"
irb(main):003> "\\".gsub("\\", "\\ \\")
=> "\\ \\...
tdrive (Stanislav Boldaev)

01/14/2020

09:51 AM Ruby Bug #16508 (Closed): Segmentation fault with Regexp in ruby 2.7.0preview2
code:
```
#!/usr/bin/env ruby
data = "test 000000000 test asdasdsa"
data.gsub(/test (?<m1>\d+) test (?<m2>\w*)/) do |match|
match.sub(Regexp.last_match(:m1), "").sub(Regexp.last_match(:m2), "")
end
```
result:
```
test....
tdrive (Stanislav Boldaev)

12/23/2019

02:01 PM Ruby Bug #16448: regex global variables are working differently depending on scope
It is very unexpected.(
Thank you.
tdrive (Stanislav Boldaev)
01:31 PM Ruby Bug #16448 (Closed): regex global variables are working differently depending on scope
Hi, everyone.
I am trying to write a code similar to this
``` ruby
#!/usr/bin/env ruby
def check(f1)
f2 = ->(match) { p match; p $~ }

data = "hello test test test"

data.gsub(/test/, &f1)
data.gsub(/test/, &f...
tdrive (Stanislav Boldaev)

Also available in: Atom