Skip to content

Instantly share code, notes, and snippets.

@g00cey
g00cey / gsub test
Created December 2, 2012 12:23
なんか正規表現の話が出ていたので。
#!ruby
# coding:utf-8
#
test = <<"EOR"
{\"title\"=>\"hogehoge\"}
EOR
puts test.gsub(/\\/,'')