Being aware of these two gems for dealing with phone:
But none of them seems to implement the findNumbers method present in the original lib.
public java.lang.Iterable<PhoneNumberMatch> findNumbers(java.lang.CharSequence text,
java.lang.String defaultRegion)
So is there any alternative in Ruby, to parse a string an extract the phone number from a given text?
My first though was to use an Regex, but it will fail to deal with different countries an different representations.
The phone number could be from any country, although I know what country the numbers belong, before parsing.
You could
scan
a string using phonelib'sfull_valid_regex_for_data