Generating phone patterns from allocation data
Use a dated numbering-plan dataset and group prefixes by shared ranges. Escape generated regular-expression values and test the range boundaries.
A matching prefix describes an allocation, not the identity of the person using the number.