📜  python strip non numeric in string - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:17.250000             🧑  作者: Mango

代码示例1
>>> import re
>>> re.sub("[^0-9]", "", "sdkjh987978asd098as0980a98sd")
'987978098098098'