<?php
preg_replace("/[^\p{L}0-9\+\-\_:\.@ ]/u", "", $_string);
$html = file_get_contents('yandex.ru');
$url = 'yandex.ru';
$vnut = array();
$vnech = array();
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
foreach ($matches[1] as $val) {
if (!preg_match("~^[^=]+://~", $val) || preg_match("~^[^://]+://(www\.)?" . $url . "~i", $val)) {
$vnut[] = $val;
} else
$vnech[] = $val;
}
$vnut = array_unique($vnut);
$vnech = array_unique($vnech);
print_r($vnut);
print_r($vnech);
?>
PD9waHAKcHJlZ19yZXBsYWNlKCIvW15ccHtMfTAtOVwrXC1cXzpcLkAgXS91IiwgIiIsICRfc3RyaW5nKTsKJGh0bWwgID0gZmlsZV9nZXRfY29udGVudHMoJ3lhbmRleC5ydScpOwokdXJsICAgPSAneWFuZGV4LnJ1JzsKJHZudXQgID0gYXJyYXkoKTsKJHZuZWNoID0gYXJyYXkoKTsKcHJlZ19tYXRjaF9hbGwoJ348YSBbXjw+XSpocmVmPVtcJyJdKFteXCciXSspW1wnIl1bXjw+XSo+KCgoPyF+c2knLCAkaHRtbCwgJG1hdGNoZXMpOwpmb3JlYWNoICgkbWF0Y2hlc1sxXSBhcyAkdmFsKSB7CiAgICBpZiAoIXByZWdfbWF0Y2goIn5eW149XSs6Ly9+IiwgJHZhbCkgfHwgcHJlZ19tYXRjaCgifl5bXjovL10rOi8vKHd3d1wuKT8iIC4gJHVybCAuICJ+aSIsICR2YWwpKSB7CiAgICAgICAgJHZudXRbXSA9ICR2YWw7CiAgICB9IGVsc2UKICAgICAgICAkdm5lY2hbXSA9ICR2YWw7Cn0KJHZudXQgID0gYXJyYXlfdW5pcXVlKCR2bnV0KTsKJHZuZWNoID0gYXJyYXlfdW5pcXVlKCR2bmVjaCk7CnByaW50X3IoJHZudXQpOwpwcmludF9yKCR2bmVjaCk7Cj8+
Main.java:1: error: class, interface, or enum expected
<?php
^
Main.java:2: error: illegal escape character
preg_replace("/[^\p{L}0-9\+\-\_:\.@ ]/u", "", $_string);
^
Main.java:2: error: illegal escape character
preg_replace("/[^\p{L}0-9\+\-\_:\.@ ]/u", "", $_string);
^
Main.java:2: error: illegal escape character
preg_replace("/[^\p{L}0-9\+\-\_:\.@ ]/u", "", $_string);
^
Main.java:2: error: illegal escape character
preg_replace("/[^\p{L}0-9\+\-\_:\.@ ]/u", "", $_string);
^
Main.java:2: error: illegal escape character
preg_replace("/[^\p{L}0-9\+\-\_:\.@ ]/u", "", $_string);
^
Main.java:3: error: class, interface, or enum expected
$html = file_get_contents('yandex.ru');
^
Main.java:3: error: unclosed character literal
$html = file_get_contents('yandex.ru');
^
Main.java:3: error: unclosed character literal
$html = file_get_contents('yandex.ru');
^
Main.java:4: error: class, interface, or enum expected
$url = 'yandex.ru';
^
Main.java:4: error: unclosed character literal
$url = 'yandex.ru';
^
Main.java:4: error: unclosed character literal
$url = 'yandex.ru';
^
Main.java:6: error: class, interface, or enum expected
$vnech = array();
^
Main.java:7: error: class, interface, or enum expected
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:7: error: unclosed character literal
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:7: error: illegal character: \92
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:7: error: unclosed character literal
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:7: error: illegal character: \92
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:7: error: unclosed character literal
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:7: error: illegal character: \92
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:7: error: unclosed character literal
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:7: error: unclosed character literal
preg_match_all('~<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!~si', $html, $matches);
^
Main.java:8: error: class, interface, or enum expected
foreach ($matches[1] as $val) {
^
Main.java:9: error: illegal escape character
if (!preg_match("~^[^=]+://~", $val) || preg_match("~^[^://]+://(www\.)?" . $url . "~i", $val)) {
^
Main.java:11: error: class, interface, or enum expected
} else
^
Main.java:13: error: class, interface, or enum expected
}
^
Main.java:15: error: class, interface, or enum expected
$vnech = array_unique($vnech);
^
Main.java:16: error: class, interface, or enum expected
print_r($vnut);
^
Main.java:17: error: class, interface, or enum expected
print_r($vnech);
^
Main.java:18: error: class, interface, or enum expected
?>
^
30 errors