You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import re
|
|
|
|
def md5_validate(v: str) -> bool:
|
|
md5_pattern = re.compile(r'^[a-fA-F0-9]{32}$')
|
|
# 匹配字符串
|
|
if md5_pattern.match(v):
|
|
return True
|
|
|
|
return False
|
|
|