Ruby equivalent of libphonenumber findNumbers

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.

+4
source share
1 answer

scan phonelib full_valid_regex_for_data

0

All Articles