Viewing 1 post (of 1 total) Author Posts August 8, 2010 at 3:04 am #8826 wgf4242Participant selection http://1 http://2 macro str = document.selection.Text; str = str.replace(/^/gm,"123"); alert(str); But the result is 123http://1 123 123http://2 I think the correct result is 123http://1 123http://2 Author Posts Viewing 1 post (of 1 total) The forum ‘Questions and Answers about Macros’ is closed to new topics and replies.