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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -