I am trying to copy a string from a website and paste it into another program. But I first have to remove the "." and "-" from the string. Ex. it is "123.345.322.22-00" but I need it to be "1233453222200".
I have tried using replace() and replace and join(). It is python 3.7.2
#copy number
pg.moveTo(238,419)
pg.click(238,419,clicks=3)
pg.hotkey('ctrl','c')
cep = pyperclip.paste()
print(cep)
cepnovo= [cep.split(".").join("")]
print(cepnovo)
I get AttributeError: 'list' object has no attribute 'join'
actual result AttributeError: 'list' object has no attribute 'join'
Expected is to output the string without "."
and "-"
.