Pythonre

[Python] Get only numbers from string

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

 

Last Updated on 2025/04/11 by A1go

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *