Python取两个字符串之间的内容

import re

str = "AwdnmdB"
re = r'A(.*?)B'
result = re.findall(re,str)
print(result)

//打印结果为:wdnmd

你可能感兴趣的:(问题解决录,python)