reformat method

String reformat (String str, String sourceText, String isoCode)

Replace not used in translated text regexps

Implementation

String reformat(String str, String sourceText, String isoCode) {
  String res = str
      .replaceAll(isoCode, "")
      .replaceAll(r'"', "")
      .replaceAll(r'[[\\(^null$)]', "");
  return res;
}