splitOnSpecialChars function

String splitOnSpecialChars(
  1. String str
)

Implementation

String splitOnSpecialChars(String str) {
  return str.replaceAll(RegExp(r"([^a-zA-Z0-9'\s])"), " ");
}