import
re
def
validateTitle(title):
rstr
=
r
"[\/\\\:\*\?\"\<\>\|]"
# ‘/ \ : * ? " < > |‘
new_title
=
re.sub(rstr,
"_"
, title)
# 替换为下划线
return
new_title
标签:pos nbsp plain alt date ace 下划线 ida gpo
import
re
def
validateTitle(title):
rstr
=
r
"[\/\\\:\*\?\"\<\>\|]"
# ‘/ \ : * ? " < > |‘
new_title
=
re.sub(rstr,
"_"
, title)
# 替换为下划线
return
new_title
标签:pos nbsp plain alt date ace 下划线 ida gpo
原文地址:https://www.cnblogs.com/php-linux/p/8318286.html