How to replace a Single Backslash '\' in a String with double Backslash '\' ?
I tried this, but its not working.
main(){
String string = "back\slash back\slash back\slash back\slash";
String replaced = string.replaceAll(RegExp(r'\\'), '\\\\');
print(replaced);
}