Using strip() to clean up a string

I am new to python and I have a string that looks like this

Temp = "', '/1412311.2121\n

my desired output is just getting the numbers and decimal itself.. so im looking for

1412311.2121 

as the output.. trying to get rid of the ‘, ‘/\n in the string.. I have tried Temp.strip(“\n”) and Temp.rstrip(“\n”) for trying to remove \n but i still seems to remain in my string. :/… Does anyone have any ideas? Thanks for your help.

Leave a Comment