# _*_coding:utf-8 _*_
# @Time　　:2021/9/10   13:48
# @Author　 : Antipa
# @ File　　  :正则测试.py
# @Software  :PyCharm
# @Description
import re
pattern = re.compile(r'http://weibo.com.*')
result=re.findall(pattern,"http://weibo.com/6107880472/KcBjyBn8Y")
print(result)

e03c9d2b9c928d74c1b80bc92acbf31f7e82f45e
<mask token>

<mask token>
print(result)

<mask token>
pattern = re.compile('http://weibo.com.*')
result = re.findall(pattern, 'http://weibo.com/6107880472/KcBjyBn8Y')
print(result)

import re
pattern = re.compile('http://weibo.com.*')
result = re.findall(pattern, 'http://weibo.com/6107880472/KcBjyBn8Y')
print(result)

# _*_coding:utf-8 _*_
# @Time　　:2021/9/10   13:48
# @Author　 : Antipa
# @ File　　  :正则测试.py
# @Software  :PyCharm
# @Description
import re
pattern = re.compile(r'http://weibo.com.*')
result=re.findall(pattern,"http://weibo.com/6107880472/KcBjyBn8Y")
print(result)
