normalizeDigitsOnly static method

String normalizeDigitsOnly(
  1. String number
)

Normalizes a string of characters representing a phone number. This converts wide-ascii and arabic-indic numerals to European numerals, and strips punctuation and alpha characters.

number a string of characters representing a phone number. normalizeDigitsOnly returns the normalized string version of the phone number.

Implementation

static String normalizeDigitsOnly(String number) {
  return normalizeDigits(number, false).toString();
}