I was wondering how can create a texstudio script for removing the $ $ notation. what is the problem of following code.
%SCRIPT txt = cursor.selectedText() txt.replace("$","") editor.write(txt) cursor.clearSelection()
With the help of Charles Stewart I finnaly got the answer
%SCRIPT var txt = cursor.selectedText() var str = txt.replace(/[$]/g,"") editor.replaceSelectedText(str) cursor.clearSelection()