regex 10 or 12 digits and starts with plus code example Example: regex pater for only 4 or 6 digits ^([0-9]{4}|[0-9]{6})$