Regular Expressions pattern to extract particular digits from text
I am trying to extract phone numbers from a string in php using the `preg_match_all()` function. I know that this pattern `'!\d+!'` extracts all numbers. But i need it to do more.
The numbers i want to extract either start with 256 followed by 9 numbers or 078,077,071,079 followed by 8 numbers.
Thank you.
Regular Expressions pattern to extract particular digits from text
===

I am trying to extract phone numbers from a string in php using the `preg_match_all()` function. I know that this pattern `'!\d+!'` extracts all numbers. But i need it to do more.
The numbers i want to extract either start with 256 followed by 9 numbers or 078,077,071,079 followed by 8 numbers.
Thank you.