How would I make this a regular string with no slash?
I have:
"3e265629c7ff56a3a88505062dd526bd\""
I want:
"3e265629c7ff56a3a88505062dd526bd"
What you have:
"3e265629c7ff56a3a88505062dd526bd\""
Is equivalent to:
'3e265629c7ff56a3a88505062dd526bd"'
So to remove that:
string.tr!('"', '')
Remember all special characters are prefixed with backslash. This includes not only things like newline \n
or linefeed \r
, but also quotation mark "
or backslash itself \\
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With