Regular for verifying phone numbers: (d{3}-)(d{8})$|(d{4}-)(d{7})$|(d{4}-)(d{8) })$ (The phone number here is a new type of number) Verification of email address: w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)* wAny uppercase and lowercase English letters, 0-9 numbers, underscores + means at least one character appears @ Fixed symbol w+ The character w appears at least 1 time or more . Fixed symbol Anyway, w+([-.]w+)* This combination is stipulated to start with a w type character, and then followed by w and a combination of - dash and period Regular verification of email The whole sentence means Email address must start with uppercase and lowercase letters or numbers or underscores, English period |