Ghbvths htuekzhys[ dshf;tybq]

Python regular Expression to get text between two strings

import re

text="""<h3 class="heading">General Purpose</h3>"""
pattern="(<.*?>)(.*)(<.*?>)"

g=re.search(pattern,text)
g.group(2)

сорс

import re

re.search(r"(?<=AAA).*?(?=ZZZ)", your_text).group(0)

сорс

Смотир еще: