阅读背景:

Ruby:如何从字符串中删除尾部反斜杠?

来源:互联网 

I have a string like

我有一个字符串

"car\"

which I will be storing in postgres db. I want to remove the backslash from the string before saving. Is there a way I can do that in ruby or in postgres? When I try to remove it in ruby, it considers the quote after the backslash as an escape character.whic




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: