@fra9matik Спасибо вам большое! Хорошего дня и успехов)
Как получить значение GET
-
Когда я запрашиваю GET для определенной ссылки, я получаю ответ, содержащий Href с токеном. Как мне получить только этот жетон.
Я хочу получить только тот ключ, который есть в verify?token="KEY"
Если вы можете помочь мне с образцами изображений, спасибо
Код получен GET
{"id":85158869,"from":"01020174a1e5e755-71e283ee-30ca-41fc-b91d-0a8cefa41015-000000@rocket.adsad.kd","subject":"Verify your email address on Site","date":"2020-09-18 17:47:13","attachments":[],"body":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <!--[if !mso]><!-->\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <!--<![endif]-->\n <meta name=\"format-detection\" content=\"telephone=no\">\n <meta name=\"x-apple-disable-message-reformatting\">\n <title><\/title>\n <style type=\"text\/css\">\n @media screen {\n @font-face {\n font-family: 'Fira Sans';\n font-style: normal;\n font-weight: 400;\n src: local('Fira Sans Regular'), local('FiraSans-Regular'), url('https:\/\/fonts.gstatic.com\/s\/firasans\/v8\/va9E4kDNxMZdWfMOD5Vvk4jN.woff') format('woff'), url('https:\/\/fonts.gstatic.com\/s\/firasans\/v8\/va9E4kDNxMZdWfMOD5Vvk4jL.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Fira Sans';\n font-style: normal;\n font-weight: 500;\n src: local('Fira Sans Medium'), local('FiraSans-Medium'), url('https:\/\/fonts.gstatic.com\/s\/firasans\/v8\/va9B4kDNxMZdWfMOD5VnZKveQhf8.woff') format('woff'), url('https:\/\/fonts.gstatic.com\/s\/firasans\/v8\/va9B4kDNxMZdWfMOD5VnZKveQhf6.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Fira Sans';\n font-style: normal;\n font-weight: 700;\n src: local('Fira Sans Bold'), local('FiraSans-Bold'), url('https:\/\/fonts.gstatic.com\/s\/firasans\/v8\/va9B4kDNxMZdWfMOD5VnLK3eQhf8.woff') format('woff'), url('https:\/\/fonts.gstatic.com\/s\/firasans\/v8\/va9B4kDNxMZdWfMOD5VnLK3eQhf6.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Fira Sans';\n font-style: normal;\n font-weight: 800;\n src: local('Fira Sans ExtraBold'), local('FiraSans-ExtraBold'), url('https:\/\/fonts.gstatic.com\/s\/firasans\/v8\/va9B4kDNxMZdWfMOD5VnMK7eQhf8.woff') format('woff'), url('https:\/\/fonts.gstatic.com\/s\/firasans\/v8\/va9B4kDNxMZdWfMOD5VnMK7eQhf6.woff2') format('woff2');\n }\n }\n\n #outlook a {\n padding: 0;\n }\n\n .ReadMsgBody,\n .ExternalClass {\n width: 100%;\n }\n\n .ExternalClass,\n .ExternalClass p,\n .ExternalClass td,\n .ExternalClass div,\n .ExternalClass span,\n .ExternalClass font {\n line-height: 100%;\n }\n\n div[style*=\"margin: 14px 0\"],\n div[style*=\"margin: 16px 0\"] {\n margin: 0 !important;\n }\n\n table,\n td {\n mso-table-lspace: 0;\n mso-table-rspace: 0;\n }\n\n table,\n tr,\n td {\n border-collapse: collapse;\n }\n\n body,\n td,\n th,\n p,\n div,\n li,\n a,\n span {\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n mso-line-height-rule: exactly;\n }\n\n img {\n border: 0;\n outline: none;\n line-height: 100%;\n text-decoration: none;\n -ms-interpolation-mode: bicubic;\n }\n\n a[x-apple-data-detectors] {\n color: inherit !important;\n text-decoration: none !important;\n }\n\n body {\n margin: 0;\n padding: 0;\n width: 100% !important;\n -webkit-font-smoothing: antialiased;\n }\n\n .pc-gmail-fix {\n display: none;\n display: none !important;\n }\n\n @media screen and (min-width: 621px) {\n .pc-email-container {\n width: 620px !important;\n }\n }\n\n @media screen and (max-width:620px) {\n .pc-sm-p-25-20 {\n padding: 25px 20px !important\n }\n .pc-sm-mw-100pc {\n max-width: 100% !important\n }\n .pc-sm-ta-center {\n text-align: center !important\n }\n .pc-sm-p-30-20-25 {\n padding: 30px 20px 25px !important\n }\n .pc-sm-fs-30 {\n font-size: 30px !important\n }\n .pc-sm-fs-18 {\n font-size: 18px !important\n }\n .pc-sm-p-35-30-30 {\n padding: 35px 30px 30px !important\n }\n .pc-sm-p-35-30 {\n padding: 35px 30px !important\n }\n .pc-sm-p-38-30-40 {\n padding: 38px 30px 40px !important\n }\n }\n\n @media screen and (max-width:525px) {\n .pc-xs-p-15-10 {\n padding: 15px 10px !important\n }\n .pc-xs-p-25-10-20 {\n padding: 25px 10px 20px !important\n }\n .pc-xs-fs-16 {\n font-size: 16px !important\n }\n .pc-xs-br-disabled br {\n display: none !important\n }\n .pc-xs-p-25-20-20 {\n padding: 25px 20px 20px !important\n }\n .pc-xs-fs-30 {\n font-size: 30px !important\n }\n .pc-xs-lh-1-42 {\n line-height: 1.42 !important\n }\n .pc-xs-p-25-20 {\n padding: 25px 20px !important\n }\n .pc-xs-fs-24 {\n font-size: 24px !important\n }\n .pc-xs-fs-14 {\n font-size: 14px !important\n }\n }\n <\/style>\n <!--[if mso]>\n <style type=\"text\/css\">\n .pc-fb-font {\n font-family: Helvetica, Arial, sans-serif !important;\n }\n <\/style>\n <![endif]-->\n <!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG\/><o:PixelsPerInch>96<\/o:PixelsPerInch><\/o:OfficeDocumentSettings><\/xml><![endif]-->\n<\/head>\n<body style=\"width: 100% !important; margin: 0; padding: 0; mso-line-height-rule: exactly; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;\" marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" topmargin=\"0\" class=\"\">\n <span class=\"preheader\" style=\"color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;\">Verify your email on site.<\/span>\n <table class=\"pc-email-body\" width=\"100%\" bgcolor=\"#ffffff\" style=\"background-color: #ffffff; table-layout: fixed\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tbody>\n <tr>\n <td align=\"center\" valign=\"top\">\n <!--[if (gte mso 9)|(IE)]><table width=\"620\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td width=\"620\" align=\"center\" valign=\"top\"><![endif]-->\n <table class=\"pc-email-container\" width=\"100%\" align=\"center\" style=\"margin: 0 auto; max-width: 620px;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tbody>\n <tr>\n <td align=\"left\" style=\"padding: 0 10px;\" valign=\"top\">\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tbody>\n <tr>\n <td height=\"20\" style=\"font-size: 1px; line-height: 1px;\"> <\/td>\n <\/tr>\n <\/tbody>\n <\/table>\n <!-- BEGIN MODULE: Menu 5 -->\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tbody>\n <tr>\n <td class=\"pc-sm-p-25-20 pc-xs-p-15-10\" style=\"padding: 29px 30px; background-color: #191b2d; font-size: 0; border-radius: 8px; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1)\" bgcolor=\"#191b2d\" valign=\"middle\">\n <!--[if (gte mso 9)|(IE)]><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td width=\"220\" valign=\"middle\"><![endif]-->\n <div class=\"pc-sm-mw-100pc\" style=\"display: inline-block; width: 100%; max-width: 220px; vertical-align: middle;\">\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tbody>\n <tr>\n <td class=\"pc-sm-ta-center\" style=\"padding: 10px;\" valign=\"top\">\n <a href=\"https:\/\/gd.br\" style=\"text-decoration: none;\"><img src=\"https:\/\/community.gd.br\/wp-content\/uploads\/2019\/02\/Full_Logo_White-copy.png\" width=\"110\" height=\"\" alt=\"\" style=\"max-width: 100%; height: auto; border: 0; line-height: 100%; outline: 0; -ms-interpolation-mode: bicubic; font-size: 14px; color: #ffffff;\"><\/a>\n <\/td>\n <\/tr>\n <\/tbody>\n <\/table>\n <\/div>\n <!--[if (gte mso 9)|(IE)]><\/td><td width=\"320\" valign=\"middle\"><![endif]-->\n <div class=\"pc-sm-mw-100pc\" style=\"display: inline-block; width: 100%; max-width: 320px; vertical-align: middle;\">\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tbody>\n <tr>\n <td class=\"pc-sm-ta-center pc-fb-font\" style=\"padding: 5px 10px; text-align: right; line-height: 28px; text-decoration: none; font-family: 'Fira Sans', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 500; color: #ffd300\" valign=\"top\"> A Rewarding Live Streaming Community\n <\/td>\n <\/tr>\n <\/tbody>\n <\/table>\n <\/div>\n <!--[if (gte mso 9)|(IE)]><\/td><\/tr><\/table><![endif]-->\n <\/td>\n <\/tr>\n <\/tbody>\n <\/table>\n <!-- END MODULE: Menu 5 -->\n <!-- BEGIN MODULE: Transactional 10 -->\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\">\n <tbody>\n <tr>\n <td height=\"8\" style=\"font-size: 1px; line-height: 1px;\"> <\/td>\n <\/tr>\n <\/tbody>\n <\/table>\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"width: 100%;\" width=\"100%\">\n <tbody>\n <tr>\n <td class=\"pc-sm-p-30-20-25 pc-xs-p-25-10-20\" style=\"vertical-align: top; padding: 40px 30px 35px; background: #ffffff; border-radius: 8px; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);\" bgcolor=\"#ffffff\" valign=\"top\">\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"width: 100%;\" width=\"100%\">\n <tbody>\n <tr>\n <td class=\"pc-sm-fs-30 pc-fb-font\" style=\"font-family: 'Fira Sans', Helvetica, Arial, sans-serif; font-size: 36px; font-weight: 800; line-height: 1.28; letter-spacing: -0.6px; color: #191b2d; padding: 0 10px; vertical-align: top\">Confirm Your Email<\/td>\n <\/tr>\n <tr>\n <td style=\"height: 15px; line-height: 1px; font-size: 1px;\" height=\"15\"> <\/td>\n <\/tr>\n <tr>\n <td class=\"pc-sm-fs-18 pc-xs-fs-16 pc-fb-font\" style=\"font-family: 'Fira Sans', Helvetica, Arial, sans-serif; font-size: 20px; line-height: 1.5; letter-spacing: -0.2px; color: #9B9B9B; padding: 0 10px; vertical-align: top;\">Please use the link below to verify your email.<br>The link will expire in 24 hours.<\/td>\n <\/tr>\n <tr>\n <td style=\"height: 40px; line-height: 1px; font-size: 1px\" height=\"20\"> <\/td>\n <\/tr>\n \n <tr>\n <td style=\"vertical-align: top; padding: 0px 0px 26px 0px;\" valign=\"top\" align=\"center\">\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tbody>\n <tr>\n <td style=\"vertical-align: top; text-align: center; padding: 13px 17px; border-radius: 8px; background-color: #ffd300;\" bgcolor=\"#ffd300\" valign=\"top\" align=\"center\">\n <a href=\"https:\/\/gb.br\/s\/verify?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Imphc29uZmxhdXJhbSIsImVtYWlsIjoiamFzb25mbGF1cmFtQDFzZWNtYWlsLmNvbSIsImV4cCI6MTYwMDUzMDQzMiwiaXNzIjoiTGlub0FwcCJ9.oSNZJeJ_xtFuYPFtNonaVTeYe_1bKj9fCYNcBPqMbvU\" style=\"line-height: 1.5; text-decoration: none; word-break: break-word; font-weight: 500; display: block; font-family: 'Fira Sans', Helvetica, Arial, sans-serif; font-size: 16px; color: #191b2d\">Click here to confirm<\/a>\n -
(Вариант с регуляркой)



- Твой текст
verify\?token=([\s\S]+?)\\"- Переменная с результатом