R
Rk Ch
I use Array.to_s convert to string. Ruby 1.9.0 return like [["sample
string"]], but 1.8.6 return only the value.
How to resolve this problem? I really don't want to revise so many lines
of code.
Here's the sample code :
text="Source String line......."
d_lo=text.scan(/Str(.*?)g/).to_s
puts d_lo
1.8.6 return:in
1.9.0 return:[["in"]]
string"]], but 1.8.6 return only the value.
How to resolve this problem? I really don't want to revise so many lines
of code.
Here's the sample code :
text="Source String line......."
d_lo=text.scan(/Str(.*?)g/).to_s
puts d_lo
1.8.6 return:in
1.9.0 return:[["in"]]