single static method

String single(
  1. String value,
  2. String replacement,
  3. List<String>? regex
)

Implementation

static String single(
  String value,
  String replacement,
  List<String>? regex,
) {
  if (regex != null && regex.isNotEmpty) {
    for (String reg in regex) {
      value = value.replaceAll(reg, replacement);
    }
  }
  return value;
}