removeNonASCII static method

String removeNonASCII(
  1. String str
)

Remove the non ASCII characters from a String

Implementation

static String removeNonASCII(String str)
 {
   return str.replaceAll(RegExp(r'[^\x20-\x7E]'), '');
 }