How to regex parse verification code from text from apple



  • How to regex parse verification code from text?

    Hello,\n\nYou have selected this email address as your new Apple ID. To verify this email address belongs to you, enter the code below on the email verification page:\n\n898378\n\nThis code will expire three hours after this email was sent.\n\nWhy you received this email\nApple requires verification whenever an email address is selected as an Apple ID. Your Apple ID cannot be used until you verify it.\n\nIf you did not make this request, please disregard this email. No Apple ID will be created without verification.\n\nKind regards,\n\n\nApple Support\n\n-------------------------------------------------------------\n\nApple ID\nhttps://appleid.apple.com\n\nSupport\nhttps://support.apple.com/en-gb\n\nPrivacy Policy\nhttps://www.apple.com/legal/privacy\n\n\nCopyright (c) 2022 One Apple Park Way, Cupertino, CA 95014, United States All rights reserved.
    


  • @zaza said in How to regex parse verification code from text from apple:

    How to regex parse verification code from text?

    Hello,\n\nYou have selected this email address as your new Apple ID. To verify this email address belongs to you, enter the code below on the email verification page:\n\n898378\n\nThis code will expire three hours after this email was sent.\n\nWhy you received this email\nApple requires verification whenever an email address is selected as an Apple ID. Your Apple ID cannot be used until you verify it.\n\nIf you did not make this request, please disregard this email. No Apple ID will be created without verification.\n\nKind regards,\n\n\nApple Support\n\n-------------------------------------------------------------\n\nApple ID\nhttps://appleid.apple.com\n\nSupport\nhttps://support.apple.com/en-gb\n\nPrivacy Policy\nhttps://www.apple.com/legal/privacy\n\n\nCopyright (c) 2022 One Apple Park Way, Cupertino, CA 95014, United States All rights reserved.
    
    (\d{6})
    


  • @Fox said in How to regex parse verification code from text from apple:

    @zaza said in How to regex parse verification code from text from apple:

    How to regex parse verification code from text?

    Hello,\n\nYou have selected this email address as your new Apple ID. To verify this email address belongs to you, enter the code below on the email verification page:\n\n898378\n\nThis code will expire three hours after this email was sent.\n\nWhy you received this email\nApple requires verification whenever an email address is selected as an Apple ID. Your Apple ID cannot be used until you verify it.\n\nIf you did not make this request, please disregard this email. No Apple ID will be created without verification.\n\nKind regards,\n\n\nApple Support\n\n-------------------------------------------------------------\n\nApple ID\nhttps://appleid.apple.com\n\nSupport\nhttps://support.apple.com/en-gb\n\nPrivacy Policy\nhttps://www.apple.com/legal/privacy\n\n\nCopyright (c) 2022 One Apple Park Way, Cupertino, CA 95014, United States All rights reserved.
    
    (\d{6})
    

    Thank you.


Log in to reply