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



  • Сделал через сайт https://bablosoft.github.io/RegexpConstructor/#!/regexptest регулярное выражение , на сайте все правильно выдает, вставляю все тоже самое в bas, он выдает пустой результат.

    <noreply@steampowered.com> X-Steam-Message-Type: Account Information Confirmation MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------060908020109090601040503" Message-Id: <E1iehwc-0006bR-Bb@smtp-02-tuk1.steampowered.com> Date: Tue, 10 Dec 2019 08:01:02 -0800 Dear og92hyqf, Here is the Steam Guard code you need to login to account og92hyqf: 47TRC This email was generated because of a login attempt from a web or mobile device located at 178.214.254.25 (RU). The login attempt included your correct account name and password. https://steamcommunity.com/actions/ReportSuspiciousLogin?stoken=b9ccc9cd203600478fc7b64c15fdf662ea83a21b644e7b1d871b6f1c03ec28802128e92d10212efcee5479cb40224ebd1bf8a940fc5908550f814a0402918526b112b401fe9c17c12d4179e3a5d98169e7c15a0c61ccc2699a4aac65894a7be7 The Steam Guard code is required to complete the login. No one can access your account without also accessing this email. If you are not attempting to login then please change your Steam password, and consider changing your email password as well to ensure your account security. If you are unable to access your account then use this account specific recovery link for assistance recovering or self-locking your account. https://help.steampowered.com/en/wizard/HelpUnauthorizedLogin?stoken=4WxqCajaeD52hFp8%2B25zze9p9%2Brdty%2B4dg2i6yCgyVicagfyRghKmsSzgHgmDu9Z0KzJOtauCL3Gy1La%2BO6buDUHNpbGio7LagByBdvqRWcbuWhWUhBhUdr8Ujy4qZvp The Steam Team https://help.steampowered.com ============== This notification has been sent to the email address associated with your Steam account. For information on Valve's privacy policy, visit https://store.steampowered.com/privacy_agreement/. This email message was auto-generated. Please do not respond. © Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
    

    Нужно получить код 47TRC с текста.



  • @xaker219 said in Регулярные выражения.:

    Сделал через сайт https://bablosoft.github.io/RegexpConstructor/#!/regexptest регулярное выражение , на сайте все правильно выдает, вставляю все тоже самое в bas, он выдает пустой результат.

    <noreply@steampowered.com> X-Steam-Message-Type: Account Information Confirmation MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------060908020109090601040503" Message-Id: <E1iehwc-0006bR-Bb@smtp-02-tuk1.steampowered.com> Date: Tue, 10 Dec 2019 08:01:02 -0800 Dear og92hyqf, Here is the Steam Guard code you need to login to account og92hyqf: 47TRC This email was generated because of a login attempt from a web or mobile device located at 178.214.254.25 (RU). The login attempt included your correct account name and password. https://steamcommunity.com/actions/ReportSuspiciousLogin?stoken=b9ccc9cd203600478fc7b64c15fdf662ea83a21b644e7b1d871b6f1c03ec28802128e92d10212efcee5479cb40224ebd1bf8a940fc5908550f814a0402918526b112b401fe9c17c12d4179e3a5d98169e7c15a0c61ccc2699a4aac65894a7be7 The Steam Guard code is required to complete the login. No one can access your account without also accessing this email. If you are not attempting to login then please change your Steam password, and consider changing your email password as well to ensure your account security. If you are unable to access your account then use this account specific recovery link for assistance recovering or self-locking your account. https://help.steampowered.com/en/wizard/HelpUnauthorizedLogin?stoken=4WxqCajaeD52hFp8%2B25zze9p9%2Brdty%2B4dg2i6yCgyVicagfyRghKmsSzgHgmDu9Z0KzJOtauCL3Gy1La%2BO6buDUHNpbGio7LagByBdvqRWcbuWhWUhBhUdr8Ujy4qZvp The Steam Team https://help.steampowered.com ============== This notification has been sent to the email address associated with your Steam account. For information on Valve's privacy policy, visit https://store.steampowered.com/privacy_agreement/. This email message was auto-generated. Please do not respond. © Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
    

    Нужно получить код 47TRC с текста.

    Действие "первое вхождение":

    account .*?: (.*?) This
    

    в переменной group1 будет ваш код



  • @Fox said in Регулярные выражения.:

    account .?: (.?) This

    Снимок.PNG
    Опять пустой результат, я не понимаю что не так.



  • Все решил, спасибо за помощь.



  • @xaker219 said in Регулярные выражения.:

    Все решил, спасибо за помощь.

    Хорошо, но скорее всего там были переносы строк


Log in to reply
 

  • 4
  • 2
  • 22
  • 19
  • 14
  • 9
  • 20
  • 4