using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main()
var r = ValidatePhoneNumbers("+1 (234) 234-5453", ["+1 (382) 123-1234", "+7 (432) 213-4534", "+49 (234) 314-2123"]);
foreach(var b in r) Console.WriteLine(b);
public static List<bool> ValidatePhoneNumbers(string phoneNumber, List<string> formats)
var regex = new Regex("\\d");
var phone = regex.Replace(phoneNumber, "0");
return formats.Select(x => regex.Replace(x, "0") == phone).ToList();