ReplaceAll with blank

17 views
Skip to first unread message

hnz...@gmail.com

unread,
Jan 5, 2019, 4:31:47 PM1/5/19
to niceeditor
Hi,
I am trying to write a macro that deletes semicolons at the end of a line. When I run the commands in the editor and a type an empty replace string it works
but if I use a macro, the ReplaceAll command asks me for a replace string. Is there a way to tell the ReplaceAll command to insert a blank space when called from a macro?

Here is the macro:

#DelSemiCol
FindRegExp ;$
ReplaceAll 

Thanks in advance

todd_...@unc.edu

unread,
Jan 5, 2019, 9:09:05 PM1/5/19
to niceeditor
You were so close. Try this:

# DelTrailingSemiCol
FindRegExp ;$
ReplaceAll " "

Cheers,
--
Todd
Reply all
Reply to author
Forward
0 new messages