Создал регулярку, протестировал тут: https://bablosoft.github.io/RegexpConstructor/#!/regexptest Результат показывает Пихаю в бас, результата 0 В чем пробелема может быть? Регулярка [\s\S]+[\s\S]+text\-m+"+>+([0-9\,A-Z\,a-z]+)</span>+</p>+[\s\S]+ Текст <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta charset="UTF-8"> <meta content="width=device-width, initial-scale=1" name="viewport"> <meta name="x-apple-disable-message-reformatting"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="telephone=no" name="format-detection"> <title></title> <!--[if (mso 16)]> <style type="text/css"> a { text-decoration: none; } </style> <![endif]--> <!--[if gte mso 9]> <style>sup { font-size: 100% !important; }</style><![endif]--> </head> <body> <img width="0" height="0" style="width:0px !important; height:0px !important; visibility:hidden;" src="https://servicegoosegg.dmesp.ru/ope...QstC10YDQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=" alt=""><span class="esd-hidden-preheader" style="display:none !important;font-size:0px;line-height:0;color:#ffffff;visibility:hidden;opacity:0;height:0;width:0;mso-hide:all;"> </span> <style> media_inactive4784564 (max-width: 768px) { .title-m { font-size: 22px; } .text-m { font-size: 18px; } .sub-m { font-size: 10px; } } </style> <div class="es-wrapper-color"> <!--[if gte mso 9]> <v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t"> <v:fill type="tile" color="#0D1D36"></v:fill> </v:background> <![endif]--> <table class="es-wrapper" width="100%" cellspacing="0" cellpadding="0"> <tbody> <tr> <td bgcolor="#0D1D36" class="esd-email-paddings" valign="top"> <table class="esd-header-popover es-content" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td class="esd-stripe" align="center"> <table class="es-content-body" style="background-color: transparent;" width="600" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td class="esd-structure es-p20t es-p20b es-p20r es-p20l" align="left"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td class="esd-container-frame" width="560" align="left"> <table width="100%" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="esd-block-text es-infoblock es-m-txt-c" align="right" esd-links-color="#742cbb"> <p><a target="_blank" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407" style="color: #742cbb;">Посмотреть письмо в браузере</a></p> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table class="es-content" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td class="esd-stripe" align="center"> <table class="es-content-body" width="600" cellspacing="0" cellpadding="0" bgcolor="#ffffff" align="center" style="background-color: #ffffff;"> <tbody> <tr> <td class="esd-structure" align="left" bgcolor="#152A47" style="background-color: #152a47;"> <table width="100%" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="esd-container-frame" width="600" valign="top" align="center"> <table width="100%" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="esd-block-image" align="center" style="font-size: 0px;"> <a target="_blank" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407"><img class="adapt-img" src="https://261520.selcdn.ru/images/1975897/6142651626859350109.jpg" alt style="display: block;" width="600"></a> </td> </tr> <tr> <td class="esd-block-text es-p20 es-m-p10" align="center" style="padding-right:9%;padding-left:9%;"> <p style="color: #ffd600; font-size: 30px; line-height: 120%;"> <span class="title-m">Приветствуем!</span> </p> </td> </tr> <tr> <td class="esd-block-text es-p5b es-p40r es-p40l es-m-p10r es-m-p10l" align="center" style="padding-right:9%;padding-left:9%;" esd-links-color="#FFD600"> <p style="color: #ffffff; font-size: 17px; line-height: 150%;">Спасибо за регистрацию на сайте <a target="_blank" style="font-size: 17px; line-height: 150%; color: #ffd600;" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407">lliga.lenta.com</a><br>Ваш пароль для учётной записи в личном кабинете:</p> </td> </tr> <tr> <td class="esd-block-text es-p40r es-p40l es-m-p10r es-m-p10l" align="center" style="padding-right:9%;padding-left:9%;"> <p style="color: #ffffff; font-size: 55px;margin-top:0;margin-bottom:20px;"><span class="text-m">3TUVFG</span></p> </td> </tr> <tr> <td align="center" class="esd-block-image" style="font-size: 0px; padding-left: 9%; padding-right: 9%; padding-bottom: 40px;"> <a target="_blank" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407"> <img src="https://261520.selcdn.ru/images/1975897/6621501628512642891.png" alt style="display: block;" width="279" class="adapt-img"> </a> </td> </tr> <tr> <td align="center" class="esd-block-image" style="font-size: 0px;"> <a target="_blank" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407"> <img class="adapt-img" src="https://261520.selcdn.ru/images/1975897/3010711628513715682.png" alt style="display: block;" width="600"> </a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table cellpadding="0" cellspacing="0" class="es-content" align="center"> <tbody> <tr> <td class="esd-stripe" align="center"> <table bgcolor="#ffffff" class="es-content-body" align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td class="esd-structure es-p25t es-p25b" align="left" background="https://261520.selcdn.ru/images/1975897/16842481628513061211.jpg" style="background-image: url(https://261520.selcdn.ru/images/1975897/8042481628513061211.jpg); background-repeat: repeat; background-position: left top;"> <!--[if mso]> <table width="600" cellpadding="0" cellspacing="0"> <tr> <td width="298" valign="top"><![endif]--> <table cellpadding="0" cellspacing="0" class="es-left" align="left"> <tbody> <tr> <td width="298" class="es-m-p20b esd-container-frame" align="left"> <table cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="left" class="esd-block-text es-p30t es-p10b es-p40l es-m-p20r es-m-p20l" style="padding-left:60px;"> <p style="font-size: 17px; color: #000000; padding-top:20px"> Заверши регистрацию и получи гарантированный приз — <strong>Промокод на 300 ₽ в «Ленту»</strong></p> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--[if mso]></td> <td width="0"></td> <td width="302" valign="top"><![endif]--> <table cellpadding="0" cellspacing="0" class="es-right" align="right"> <tbody> <tr> <td width="302" align="left" class="esd-container-frame"> <table cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="left" class="esd-block-image es-m-p20r es-m-p20l" style="font-size: 0px;"> <a target="_blank" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407"><img class="adapt-img" src="https://261520.selcdn.ru/images/1975897/9867791628513238957.png" alt style="display: block;" width="250"></a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--[if mso]></td></tr></table><![endif]--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table class="es-footer esd-footer-popover" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td class="esd-stripe" align="center"> <table class="es-footer-body" width="600" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td class="esd-structure es-p15t es-p20r es-p20l" align="left" bgcolor="#0D1D36"> <table cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td width="560" class="esd-container-frame" align="center" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="center" class="esd-block-text" style="padding-top:10px;"> <p style="color: #ffffff; font-size: 20px;margin-bottom:10px;"> Искренне Ваша, команда «ЛЕНТЫ»</p> </td> </tr> <tr> <td align="center" class="esd-block-spacer es-p15t es-p20b es-p10r es-p10l" style="font-size:0"> <table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border-bottom: 1px solid #25344a; background:none; height:1px; width:100%; margin:0px 0px 30px 0px;"></td> </tr> </tbody> </table> </td> </tr> <tr> <td align="center" class="esd-block-social es-p10b" style="font-size:0"> <table cellpadding="0" cellspacing="0" class="es-table-not-adapt es-social" style="margin-top:10px;"> <tbody> <tr> <td align="center" valign="top" class="es-p10r" style="padding-right:10px;" esd-tmp-icon-type="vkontakte"><a target="_blank" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407"><img src="https://261520.selcdn.ru/images/1975897/9856171626862314276.png" alt="VK" title="Vkontakte" width="40"></a></td> <td align="center" valign="top" class="es-p10r" style="padding-right:10px;" esd-tmp-icon-type="odnoklassniki"><a target="_blank" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407"><img src="https://261520.selcdn.ru/images/1975897/12322391626862314123.png" alt="Ok" title="Odnoklassniki" width="40"></a></td> <td align="center" valign="top" class="es-p10r" style="padding-right:10px;" esd-tmp-icon-type="youtube"><a target="_blank" href="https://servicegoosegg.dmesp.ru/cli...DQttC00LXQvdC40Y8g0L_QvtGH0YLRiw--&v=&s=8407"><img src="https://261520.selcdn.ru/images/1975897/18941371626862314113.png" alt="Yt" title="Youtube" width="40"></a></td> </tr> </tbody> </table> </td> </tr> <tr> <td align="center" class="esd-block-text" style="padding-top:10px;"> <p style="font-size: 17px; color: #ffffff; margin-bottom:5px;"> Присоединяйтесь к нам социальных сетях!</p> </td> </tr> <tr> <td align="center" class="esd-block-text es-p30b"> <p style="font-size: 15px; color: #566172; margin-top:5px;"> Не является публичной офертой</p> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </div> </body> </html>