Replace \ with \\ in string

Hi all :). I am trying to replace \ with \, but I am having problems with the ". I know that I should do this with string.replace. but i don’t know what the regex for \ is.

 var myPattern:RegExp = /"\"/g;  
 var str:String = "She sells\ seashells by\ the seashore.";
 trace(str.replace(myPattern, "\\"));  

Please help. 10x in advance :slight_smile: