регулярное выражение



  • помогите пожалуйста с регулярным выражением сижу уже 3 часа пытаюсь достать код из сообщения не чего не получается

    <div class="body"><img height="1" src="/p/rUyWRWMAxz4SzzYvYhCMyw/https/www.amazon.co.uk/gp/r.html?C=4XBRCDY40J48&amp;M=urn:rtn:msg:20220310154321c1d69e03545649d5b0d78952af40p0eu&amp;R=2JZ4KKKLN2D23&amp;T=O&amp;U=https%3A%2F%2Fimages-eu.ssl-images-amazon.com%2Fimages%2FG%2F01%2Fnav%2Ftransp.gif&amp;H=M4W8LXNYBGDVMUMR5ND2YXPMRV8A&amp;ref_=pe_1764051_62581901_opens" width="1"><table align="center" cellpadding="0" cellspacing="0" class="body" id="container"><tbody><tr><td><table cellpadding="0" cellspacing="0" id="content"><tbody><tr><td id="header"><table cellpadding="0" cellspacing="0"><tbody><tr><td id="logo" width="250"><img alt="sm-auth-portal-hero-alt" data-src="https://images-na.ssl-images-amazon.com/images/G/01/sm/auth-portal/gaming-desktop-banner._CB409546984_.svg" id="customLogo" src="/p/A-zS49UPU6gLUgqURszy7w/https/images-na.ssl-images-amazon.com/images/G/01/sm/auth-portal/gaming-desktop-banner._CB409546984_.svg"></td><td align="right" id="title" valign="top" width="250"><p>Verify your new Amazon account</p></td></tr></tbody></table></td></tr><tr><td id="verificationMsg"><p>To verify your email address, please use the following One Time Password (OTP):</p><p class="otp">796550</p></td></tr><tr><td id="accountSecurity"><p>Do not share this OTP with anyone. Amazon takes your account security very seriously. Amazon Customer Service will never ask you to disclose or verify your Amazon password, OTP, credit card, or banking account number. If you receive a suspicious email with a link to update your account information, do not click on the link—instead, report the email to Amazon for investigation. </p></td></tr><tr><td id="closing"><p>Thank you!</p></td></tr></tbody></table></td></tr></tbody></table><img height="1" src="/p/l8T5YfWIDWnrqg7vVPwB3Q/https/www.amazon.co.uk/gp/r.html?C=4XBRCDY40J48&amp;M=urn:rtn:msg:20220310154321c1d69e03545649d5b0d78952af40p0eu&amp;R=J68CTM4X0Z06&amp;T=E&amp;U=https%3A%2F%2Fimages-eu.ssl-images-amazon.com%2Fimages%2FG%2F01%2Fnav%2Ftransp.gif&amp;H=CU5GSJGBSUS1H2U6GDJZ0E2BKEYA&amp;ref_=pe_1764051_62581901_open" width="1"></div>
    
    796550
    

    вот это нужно достать



  • @anafi said in регулярное выражение:

    796550

    <p\ class="otp">([\s\S]*?)</p>



  • @perhorovich said in регулярное выражение:

    <p\ class="otp">([\s\S]*?)</p>

    спасибо)))))


Log in to reply