Исправить регулярку PHP
Нужно определить сработает ли такая регулярка
if (preg_match("|<body[^>]*?>(.*)</body>|sei", $text, $arr))
{
return $arr[1];
}
для того, чтобы выделить body из html страницы
-
359 7 0 1 Вам треба получити контент body мож зробити для вас це маю опит написання регулярок це буде просто
-
482 7 0 Код рабочий. Только уберите букву "e" из модификаторов. В 7 версии PHP ее уже не поддерживают^
https://www.php.net/manual/ru/reference.pcre.pattern.modifiers.php
e (PREG_REPLACE_EVAL)
Внимание: Эта функциональность считается УСТАРЕВШЕЙ с PHP 5.5.0, и УДАЛЕНА в PHP 7.0.0.
-
685 39 0 1 Проверил. Сработает, но с небольшими правками.
Проверил. Сработает, но с небольшими правками.
Проверил. Сработает, но с небольшими правками.
Current freelance projects in the category Data Parsing
Parsing company emails from a specific industry
113 USD
Find contacts (e-mail, phone number) of companies engaged in the specified business mentioned in this Google document https://docs.google.com/document/d/1_d-iLxLSL3gjRvo1GmUpWNm0Pm5YoKGcEvaiDc_2I0g/edit?usp=sharing The result should be in the form of a table with the following… Data Parsing ∙ 15 minutes back ∙ 4 proposals |
Need a parser for the online store https://www.lcsc.com/It is necessary to regularly (once a month, or upon script launch) obtain up-to-date information about the products available in the store. https://www.lcsc.com/ from the catalog of all sections.… Data Parsing ∙ 1 day 5 hours back ∙ 41 proposals |
OpenCart — rental catalog of special equipment
135 USD
OpenCart — Equipment Rental Catalog Need to launch an equipment rental catalog on OpenCart. Theme: excavators cherry pickers forklifts generators cranes scaffolding other construction equipment. It is preferable that you already have a ready-made template or developments… Web Programming, Data Parsing ∙ 1 day 22 hours back ∙ 56 proposals |
Transfer the program - the server where the program was located has crashed (officially permitted parsing of government data)
46 USD
Hello! My client has encountered the case described below. We need help transferring to a new server and testing the program. It would be better to have a programmer who understands parsing. Software & Server Configuration, Data Parsing ∙ 2 days 1 hour back ∙ 29 proposals |
Website parsingImplementation of 4 parsers (directory websites) is required. There is a technical specification, and there is a code example as a reference. The tasks include: Writing a parser Integrating a proxy Deduplication logic (transfer the logic from the example) Hashing logic based… Data Parsing ∙ 3 days 18 hours back ∙ 44 proposals |