replaceHyphens static method

String replaceHyphens(
  1. String term, [
  2. String replace = ' '
])

Replaces all hyphenations with replace.

A hypenation is a single dash character preceded and followed by a word boundary.

Implementation

static String replaceHyphens(String term, [String replace = ' ']) =>
    term.replaceAll(RegExp(kHypenations), replace);