I want to get only the numbers from a string. For example I have something like this
just='Standard Price:20000'
And I only want it to print out
20000
So I can multiply it by any number.
I tried
just='Standard Price:20000'
just[0][1:]
I got
''
What's the best way to go about this? I'm a noob.
just[0] == 'S',right? - jonrsharpe"".join(re.findall('\d+', just))to get all numbers from string - itzMEonTV