using System;
using System.Text.RegularExpressions;
static void Main()
{
Regex r = new Regex(@"\b\d{2}\.\d{2}\.\d{2}\b");
string text1 = "Дата: 12.05.23";
string text2 = "Нет даты";
string text3 = "Дата рождения: 01.01.99";
string text4 = "Некорректная дата: 32.13.22"; // Пример некорректной даты
Console.WriteLine(r.IsMatch(text1)); // true
Console.WriteLine(r.IsMatch(text2)); // false
Console.WriteLine(r.IsMatch(text3)); // true
Console.WriteLine(r.IsMatch(text4)); // false
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgogICAgc3RhdGljIHZvaWQgTWFpbigpCiAgICB7CiAgICAgICAgUmVnZXggciA9IG5ldyBSZWdleChAIlxiXGR7Mn1cLlxkezJ9XC5cZHsyfVxiIik7CiAgICAgICAgc3RyaW5nIHRleHQxID0gItCU0LDRgtCwOiAxMi4wNS4yMyI7CiAgICAgICAgc3RyaW5nIHRleHQyID0gItCd0LXRgiDQtNCw0YLRiyI7CiAgICAgICAgc3RyaW5nIHRleHQzID0gItCU0LDRgtCwINGA0L7QttC00LXQvdC40Y86IDAxLjAxLjk5IjsKICAgICAgICBzdHJpbmcgdGV4dDQgPSAi0J3QtdC60L7RgNGA0LXQutGC0L3QsNGPINC00LDRgtCwOiAzMi4xMy4yMiI7IC8vINCf0YDQuNC80LXRgCDQvdC10LrQvtGA0YDQtdC60YLQvdC+0Lkg0LTQsNGC0YsKCiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoci5Jc01hdGNoKHRleHQxKSk7IC8vIHRydWUKICAgICAgICBDb25zb2xlLldyaXRlTGluZShyLklzTWF0Y2godGV4dDIpKTsgLy8gZmFsc2UKICAgICAgICBDb25zb2xlLldyaXRlTGluZShyLklzTWF0Y2godGV4dDMpKTsgLy8gdHJ1ZQogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKHIuSXNNYXRjaCh0ZXh0NCkpOyAvLyBmYWxzZQoJfQo=