какой тут лучше использовать паттерн
хотелось бы сделать тоже через паттерны
>>> content = str(requests.get("https://pastebin.com/raw/sGsusNPT").content)
>>> content
'b\' <div class="form">\\r\\n\\r\\n\\r\\n <label>\\r\\n <input type="radio"\\r\\n\\r\\n name="options" value="55">\\r\\n a. XXXXXXXXXXX <br>\\r\\n\\r\\nb. ZZZZZZZZZ<br>\\r\\n\\r\\nc. MMMMMMMMM<br>\\r\\n\\r\\nd. YYYYYYYYYYY<br>\\r\\n\\r\\ne. AAAAAAAAA\\r\\n </label>\\r\\n\\r\\n <label>\\r\\n <input type="radio"\\r\\n\\r\\n name="options" value="56">\\r\\n a. XXXXXXXXXXX<br>\\r\\n\\r\\nb. MMMMMMMMM<br>\\r\\n\\r\\nc. YYYYYYYYYYY<br>\\r\\n\\r\\nd. ZZZZZZZZZ<br>\\r\\n\\r\\ne. AAAAAAAAA\\r\\n </label>\\r\\n\\r\\n <label>\\r\\n <input type="radio"\\r\\n\\r\\n name="options" value="57">\\r\\n a. XXXXXXXXXXX<br>\\r\\n\\r\\nb. MMMMMMMMM<br>\\r\\n\\r\\nc. YYYYYYYYYYY<br>\\r\\n\\r\\nd. AAAAAAAAA<br>\\r\\n\\r\\ne. ZZZZZZZZZ\\r\\n </label>\\r\\n\\r\\n\\r\\n\\r\\n </div>\''
>>> re.findall(r'<label>\s*<input type=\"(\w+)\"\s*.+?value=\"(\d+)\">(.+?)\/label', content, re.MULTILINE | re.DOTALL)
[('radio', '55', '\n a. XXXXXXXXXXX <br>\n\nb. ZZZZZZZZZ<br>\n\nc. MMMMMMMMM<br>\n\nd. YYYYYYYYYYY<br>\n\ne. AAAAAAAAA\n <'), ('radio', '56', '\n a. XXXXXXXXXXX<br>\n\nb. MMMMMMMMM<br>\n\nc. YYYYYYYYYYY<br>\n\nd. ZZZZZZZZZ<br>\n\ne. AAAAAAAAA\n <'), ('radio', '57', '\n a. XXXXXXXXXXX<br>\n\nb. MMMMMMMMM<br>\n\nc. YYYYYYYYYYY<br>\n\nd. AAAAAAAAA<br>\n\ne. ZZZZZZZZZ\n <')]