Python:从第一个数字字符中删除字符串
答
import re
str = "some text 12345 other text"
result = re.split("\d+", str)[0]