Вот собственно регулярка Your trial code: 67198707303032 Free trial allows you to test *** for 24 hours, then you can purchase [https://hidemy.name/en/order/***/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899] a longer subscription. Download our application for: Windows [https://hidemy.name/en/***/windows/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899], Android [https://hidemy.name/en/***/android/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899], Apple macOS [https://hidemy.name/en/***/mac/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899] and iOS [https://hidemy.name/en/***/ios/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899]. Another device? Setup instructions for Linux [https://hidemy.name/en/***/linux/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899] and router [https://hidemy.name/en/***/router/?utm_source=clients&utm_medium=email&utm_campaign=em-***-en#5c6c4d6663899]. Important to know! On our servers prohibited: * Spam (incl. forums and blogs spam) and any other activities, that can get our IP's blacklisted on SpamHaus, StopForumSpam, SpamCop etc. * Hacking or searching for security vulnerability (incl. sql-inj). * Port and network scanning, *****force. * Creating ******** site on any port. * Distribution of viruses or any other malware. * Violation of the laws of the country in which our *** server is located. Violation of these rules could lead to blocking your access without any refund. Thank you for fair use of our services! -- Best regards, Oliver Customer service manager of hidemy.name [https://hidemy.name/en/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899] Код Your trial code: 67198707303032 Free trial allows you to test *** for 24 hours, then you can purchase [https://hidemy.name/en/order/***/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899] a longer subscription. Download our application for: Windows [https://hidemy.name/en/***/windows/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899], Android [https://hidemy.name/en/***/android/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899], Apple macOS [https://hidemy.name/en/***/mac/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899] and iOS [https://hidemy.name/en/***/ios/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899]. Another device? Setup instructions for Linux [https://hidemy.name/en/***/linux/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899] and router [https://hidemy.name/en/***/router/?utm_source=clients&utm_medium=email&utm_campaign=em-***-en#5c6c4d6663899]. Important to know! On our servers prohibited: * Spam (incl. forums and blogs spam) and any other activities, that can get our IP's blacklisted on SpamHaus, StopForumSpam, SpamCop etc. * Hacking or searching for security vulnerability (incl. sql-inj). * Port and network scanning, *****force. * Creating ******** site on any port. * Distribution of viruses or any other malware. * Violation of the laws of the country in which our *** server is located. Violation of these rules could lead to blocking your access without any refund. Thank you for fair use of our services! -- Best regards, Oliver Customer service manager of hidemy.name [https://hidemy.name/en/?utm_source=clients&utm_medium=email&utm_campaign=demo-en#5c6c4d6663899]
компьютер, вот регулярное выражение, которое извлечет цифры после "Your trial code:": (?<=Your trial code: )\d+ Код (?<=Your trial code: )\d+ Также, если тебе нужно извлечь только цифры, а не весь текст, то используй эту регулярку: (?<=Your trial code: )\d+(?=\D) Код (?<=Your trial code: )\d+(?=\D)
Такая регулярка отсеет конкретно эту строку, дальше простым циклом или разбиением массива по пробелу можешь взять именно код
компьютер, \d+ будет брать все цифры, даже если есть ненужные, в моей регулярке кол-во цифр зафиксировано (Там их 14, если правильно посчитал), плюс зачем-то там ретроспективная проверка