<?php
$inputData = '8-(911)-506 5688888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888';
$regexp = '/^8([0-9-()\\s]+)([0-9-()\\s]+)$/u';
echo "Всё верно\n";
} else {
echo "Пожалуйста, укажите номер в формате 8ХХХХХХХХХХ!\n";
}
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokaW5wdXREYXRhID0gJzgtKDkxMSktNTA2IDU2ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODgnOwokcmVnZXhwID0gJy9eOChbMC05LSgpXFxzXSspKFswLTktKClcXHNdKykkL3UnOwoKaWYgKHByZWdfbWF0Y2goJHJlZ2V4cCwgJGlucHV0RGF0YSkpIHsKCWVjaG8gItCS0YHRkSDQstC10YDQvdC+XG4iOwp9IGVsc2UgewoJZWNobyAi0J/QvtC20LDQu9GD0LnRgdGC0LAsINGD0LrQsNC20LjRgtC1INC90L7QvNC10YAg0LIg0YTQvtGA0LzQsNGC0LUgONCl0KXQpdCl0KXQpdCl0KXQpdClIVxuIjsKfQoKPz4K