#11225
JohnQSmith
Participant

VBScript macro

replaced = document.selection.Replace( "s+?$", "", eeFindReplaceRegExp Or eeReplaceAll )

Macros > Customize macros > Run at Events
Then select the Before Saving event