stripNonNumericCharacters static method

String stripNonNumericCharacters(
  1. String text
)

Strip all non-numeric characters

Implementation

static String stripNonNumericCharacters(String text)
{
  return text.replaceAll(new RegExp("[^0-9]"), "");
}