String escapeString(String str) { return str.replaceAll(RegExp(r'/([.+*?=^!:${}()[\]|/\\])/g'), '\$1'); }