import re
q=re.match("02fd8001*", "02FD80010304002FD8001002FD800105", flags=re.I)
print(q.group())
print(q.end(0))
k=re.split("02fd8001", "02FD80010304002FD8001002FD800202FD8001052FD800233333", maxsplit=0, flags=re.I)
print("切割完形成数组",k)
k=re.findall("02fd8001", "02FD80010304002FD8001002FD800202FD8001052FD800233333", flags=re.I)
print(k)
k=re.search("02fd8001", "02FD80010304002FD8001002FD800202FD8001052FD800233333", flags=re.I)
print(k)
it = re.finditer(r"\d+", "12a32bc43jf3")
for match in it:
print(match.group())
str="02FD80010304002FD8001002FD800202FD8001052FD800233333"
k=re.sub("02FD8001", r'\n\g<0>',"02FD80010304002FD8001002FD800202FD8001052FD800233333")
print(k)
k=re.sub("02FD8001", r'kk\g<0>',"02FD80010304002FD8001002FD800202FD8001052FD800233333")
print(k)
k=re.sub("02fd8001", r'wgm\g<0>',"02FD80010304002FD8001002FD800202FD8001052FD800233333",flags=re.I)
print(k)
k=k.split("wgm")
print(k)
for a in k:
if a[0:8] == "02FD8001":
print(a,"获取的目标数据")