VadimGen

Рейтинг
86
Регистрация
30.04.2017
жесть, как теперь namesilo продлевать (((

без split и explode )))

$q = 'This role may also be located in our Playa Vista, CA campus.Note: By applying to this position you will have an opportunity to share your preferred working location from the following: Mountain View, CA, USA; Atlanta, GA, USA; Boulder, CO, USA; Chicago, IL, USA; New York, NY, USA; Los Angeles, CA, USA; San Francisco, CA, USA; Washington D.C., DC, USA.
This role may also be located in our Playa Vista, CA campus.Note: Google’s hybrid workplace includes remote and in-office roles. By applying to this position you will have an opportunity to share your preferred working location from the following:In-office locations: San Francisco, CA, USA; Boulder, CO, USA; Los Angeles, CA, USA.Remote location(s): California, USA; Colorado, USA.
Please submit your resume in English - we can only consider applications submitted in this language.
Note: Google’s hybrid workplace includes remote roles
Remote location: Brazil.';


preg_match_all('/location.*?:([a-zA-Z ,;\.]*)[\.;]/', $q, $m);

$r = [];
foreach ($m[1] as $v) {
    $v = trim($v);
    $s = 0;
    while (($p = strpos($v, ';', $s)) !== false) {
        $location = trim(substr($v, $s, $p - $s));
        if ($location !== '') {
            $r[] = $location;
        }
        $s = $p + 1;
    }
    $location = trim(substr($v, $s));
    if ($location !== '') {
        $r[] = $location;
    }
}

print_r($r);

chaturanga #:

где нет?

не ясно выразился.

в исходниках:

Please submit your resume in English - we can only consider applications submitted in this language.

Note: Google’s hybrid workplace includes remote roles

Remote location: Brazil.
получается окончание USA ни всегда есть. хз по каким правилам вычленить
dzthd #:
Регулярки? Эксплоде (сплит) по точке с запятой решит задачу.

там еще в середине исходника вставки есть))

а точно вывод исходника такой, или еще есть варианты?

попробуй)))

$matches = [];

preg_match_all('/(?<=: )([^:]+USA)\./', 'qwe: qwe: qweUSA.sdfd: sdffUSA.', $q);

$q = implode("; ", $q[1]);

неделю назад где-то в 6 раз уменьшился доход при тех же показах

если отнятая сумма идет в бюджет Яндекс для развития, то ладно, переживем

Амазон на основе ИИ будет делать видео и фото. Это выйдет не дорого и понятно пользователю.

Думаю именно такой подход имеет перспективу.

https://wishu.io/amazon-is-using-ai-to-make-more-ads/

на амазоне есть такое? если нет, то и не надо
Всего: 352