Regex noob here, I need help! I would like to create a broad regex that matches phone numbers (any international format) from text and returns only the numbers. I have other functions that will further validate the number based on country, so I am not worried about that for this regex. I mainly just need to strip the numbers out of text, but each number separately. Also, number delimiters can include +-.()
or a single space.
Example
This is some text with +1 (234) 222-9898 a phone number in it and a random number 12. Also here is a +44 0800 655 5059 UK number
I would like the regex to return only
['12342229898', '12', '4408006555059']
I appreciate the help, let me know if you need more requirements!