vendredi 6 juillet 2018

Remove double quotation marks

using gsub to remove double

a = "5.102"
a.gsub('\"', "") 

result = "5.102"

How can you strip off the quote marks from the return value to get the following?

expected result = 5.102

Aucun commentaire:

Enregistrer un commentaire