gaurav

Activity Graph

Page 1 of 1

2017-08-01

[11:22:05] gaurav: Quit: leaving

2017-07-27

[22:41:59] gaurav: Write error: Connection reset by peer

2017-07-12

[22:35:02] gaurav: Remote host closed the connection
[22:35:09] gaurav: has joined #ruby

2017-06-30

[14:16:50] gaurav: Ping timeout: 240 seconds
[14:16:58] gaurav: has joined #ruby

2017-06-27

[09:29:54] gaurav: has joined #ruby

2017-06-20

[00:15:12] gaurav: Write error: Broken pipe

2017-06-08

[22:03:44] gaurav: Ping timeout: 240 seconds
[22:03:51] gaurav: has joined #ruby

2017-06-07

[12:09:39] gaurav: has joined #ruby
[12:11:39] gaurav: Hi I am trying to append something to the end of a string. Where my string is "Bar" I want to append "0" to the end so it becomes "Bar0"
[12:12:03] gaurav: 'Bar'.gsub('/\Z/', '0')
[12:12:10] gaurav: is what I am trying.
[12:12:55] gaurav: $,\$,\$/ also don't seem to work.
[12:14:31] gaurav: 'Bar' << 0 gives => "Bar\x00"
[12:17:17] gaurav: Thanks tobiasvl it seems like I just needed to remove my quotes from my matching regex. :)