📜  python string strip non alphanumeric - Python 代码示例

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

代码示例1
Regular expressions to the rescue:

import re
stripped_string = re.sub(r'\W+', '', your_string)