This commit is contained in:
hackrobot
2024-04-11 12:27:09 +08:00
parent 67c3119b80
commit e3b996e3e2

View File

@@ -140,9 +140,12 @@ def h5group(nickname, db: Session = Depends(get_db)):
pattern = r'收到(\w+)的在看'
print(newtext)
matches = re.findall(pattern, newtext)
print("matches",matches)
matchesString=None
if len(matches)>0:
matchesString=matches[0]
print("matchesString",matchesString)
if matchesString:
matchesString=remove_emojis(matchesString) #删除emoji字符串
print("匹配到的结果:", matchesString)