Viewing 3 posts - 1 through 3 (of 3 total) Author Posts May 22, 2012 at 6:32 am #10376 userParticipant hello! can anyone write a script that will remove all trailing (one next to other) white characters (spaces, tabs, etc) and replace them with one space? also remove all white characters in the begining and end of all lines (and not replace them with one space) thanks! May 22, 2012 at 7:57 am #10377 webernMember 1. document.selection.Replace(“( |t)+?$”,” “, eeReplaceAll | eeFindReplaceRegExp); 2. document.selection.Replace(“( |t)+?$”,””, eeReplaceAll | eeFindReplaceRegExp); document.selection.Replace(“^( |t)+?”,””, eeReplaceAll | eeFindReplaceRegExp); May 22, 2012 at 8:15 am #10378 userParticipant mmm, it doesnt work! in a text like this: sdf[5 spaces here]sdf nothing happens! any fix? Author Posts Viewing 3 posts - 1 through 3 (of 3 total) The forum ‘Questions and Answers about Macros’ is closed to new topics and replies.