[Python] Get only numbers from string

import re
price = re.findall("\d+", string)[0]

 

Last Updated on 2025/04/11 by A1go

Bitnami