<?php
header("Content-Type: text/plain; charset=utf-8");
$input = '8(911)596-55-55';
$regexp = '/^8[(\s]{1}[0-9]{3}[)\s]{1}[0-9]{3}[-\s]{1}[0-9]{2}[-\s]{1}[0-9]{2}$/';
echo "Все верно. \n";
} else {
echo "Не верно. \n";
}
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CmhlYWRlcigiQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PXV0Zi04Iik7CgokaW5wdXQgPSAnOCg5MTEpNTk2LTU1LTU1JzsKJHJlZ2V4cCA9ICcvXjhbKFxzXXsxfVswLTldezN9Wylcc117MX1bMC05XXszfVstXHNdezF9WzAtOV17Mn1bLVxzXXsxfVswLTldezJ9JC8nOwokbWF0Y2hlcyA9IGFycmF5KCk7CgppZiAocHJlZ19tYXRjaCgkcmVnZXhwLCAkaW5wdXQsICRtYXRjaGVzKSkgewogICAgZWNobyAi0JLRgdC1INCy0LXRgNC90L4uIFxuIjsKICAgIHZhcl9kdW1wKCRtYXRjaGVzKTsKfSBlbHNlIHsKICAgIGVjaG8gItCd0LUg0LLQtdGA0L3Qvi4gXG4iOwp9