String escapeRegExp(String string) { return string.replaceAll(RegExp(r'[.*+?^${}()|[\]\\]'), '\\\$&'); }