Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
Post your project for free and start receiving proposals from freelancers within minutes after publication!

Исправить регулярку PHP


  1. 359    7  0   1
    1 day6 USD

    Вам треба получити контент body мож зробити для вас це маю опит написання регулярок це буде просто

  2. 482    7  0
    1 day2 USD

    Код рабочий. Только уберите букву "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.

  3. 685    39  0   1
    1 day2 USD

    Проверил. Сработает, но с небольшими правками.
    Проверил. Сработает, но с небольшими правками.
    Проверил. Сработает, но с небольшими правками.

  4. Another 5 proposals concealed
  • Profile deleted
    10 September 2019, 13:30 |

    Здравствуйте, Дмитрий. Важно принципиальное использование регулярок или решение самой задачи парсинга <body> ?

  • Profile blocked
    10 September 2019, 13:35 |

    не вижу проблем ...


    но лучше без регулярок


    пишите

  • Profile deleted
    10 September 2019, 15:03 |

    Могу написать корректный html-файл, который сломает ваш код. Если у вас не слишком жесткие требования к производительности, то готов написать функцию в десяток строк, которая решает эту задачу корректно и безупречно для валидных html.

  • Profile blocked
    11 September 2019, 7:35 |

     if (preg_match("|<body[^>]*?>(.*)</body>|sei", $text, $arr))

         {

          return $arr[1];

         }


    1)если я не ошибаюсь "e" - отменен в более новых версиях PHP.

     

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 ProgrammingData 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 ConfigurationData Parsing ∙ 2 days 1 hour back ∙ 29 proposals

Website parsing

Implementation 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

Client
Project published
6 years back
144 views