ruby remove backslash from string -
how make regular string no slash?
i have:
"3e265629c7ff56a3a88505062dd526bd\"" i want:
"3e265629c7ff56a3a88505062dd526bd"
what have:
"3e265629c7ff56a3a88505062dd526bd\"" is equivalent to:
'3e265629c7ff56a3a88505062dd526bd"' so remove that:
string.tr!('"', '') remember special characters prefixed backslash. includes not things newline \n or linefeed \r, quotation mark " or backslash \\.
Comments
Post a Comment