Apps Script Lesson Select Emails using Regex on Doc Body text apply style for highlighting selection
Highlight emails in a Doc using Regex on Doc Body Contents Select all matching results from a Regex for email patterns. Creates an array of the emails contained in the doc, then applies styling to the email. Highlight the matching results with a yellow background and black text. function onOpen(){ DocumentApp.getUi() .createMenu(’emails’) .addItem(‘Highlight’,’highlighter’) .addToUi() } … Read more