Replaces all occurrences of pattern with an empty string.
pattern
String removeAll(Pattern? pattern) { if (pattern == null) return this; return replaceAll(pattern, ''); }