replaceHyphens static method
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);