From: Kirk on
> You could create the 2 lines in the editor and insert it in the replace-dialog by copy and paste --- at least I thought it would work in Matlab's editor. But it doesn't - what a pitty.

That would be neat if it did. I think it is an oversight not to allow for some special characters (carriage returns, etc.) or even better, regular expressions to work with Matlab's text editor.
From: Alan B on
"Kirk" <kwythers.nospam(a)umn.edu> wrote in message <hskb7o$7cc$1(a)fred.mathworks.com>...
> > You could create the 2 lines in the editor and insert it in the replace-dialog by copy and paste --- at least I thought it would work in Matlab's editor. But it doesn't - what a pitty.
>
> That would be neat if it did. I think it is an oversight not to allow for some special characters (carriage returns, etc.) or even better, regular expressions to work with Matlab's text editor.

I sometimes solve these kinds of problems with Notepad++ in Windows, Geany in Linux.

http://www.geany.org/manual/current/images/replace_dialog.png