Fixed regular expression replace in main window - thx ivandrofly :)    Fix#185