Knowing about these two gems for working with the phone:
But not one of them implements the findNumbers method present in the source library.
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, infer a phone number from a given text?
My first was to use Regex, but it will not deal with different countries in different ways.
The phone number can be from any country, although I know in which country the numbers are before analysis.
source
share