stripPhoneSeparators function

String stripPhoneSeparators(
  1. String input
)

Removes the separators commonly used to write a phone number: spaces, dots, dashes and parentheses.

input Raw phone number.

Implementation

String stripPhoneSeparators(String input) =>
  input.replaceAll(_separatorsRegExp, '');