c# phone number regex attriute code example Example: phone number regex in c# ^\+?(\d[\d-. ]+)?(\([\d-. ]+\))?[\d-. ]+\d$