Optimize your regex by using non-greedy quantifiers, atomic grouping, possessive quantifiers, specific patterns, anchors, capture groups, lookaheads, lookbehinds, regex builders, and combining with HTML parsers when possible.
id="email"[^>]*+>([^<]*+)</div>.*?id="phone"[^>]*+>([^<]*+)</div>