Google Apps Script - Exercise Coding Projects - Highlight Emails in a Doc Using Regex

Google Apps Script - Exercise Coding Projects - Highlight Emails in a Doc Using Regex

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

This video tutorial guides viewers through creating a script to highlight email addresses in a document using a UI button. It covers setting up a script in the script editor, creating a highlighter function, using regular expressions to find emails, and applying styles to highlight them. The tutorial also demonstrates how to add a menu to the UI and log document content.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary objective of the lesson?

To format text in a document.

To create a new document from scratch.

To learn how to send emails from a document.

To create a UI button for highlighting email addresses.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in setting up the script for highlighting emails?

Setting up the UI menu in the script editor.

Creating a new document.

Writing a function to send emails.

Adding a new paragraph to the document.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to automatically run when the document is opened?

onOpen

onClick

onClose

onSave

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the highlighter function?

To send emails from the document.

To select the document body and find email addresses.

To create a new document.

To delete all email addresses.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are email addresses identified in the document?

By changing the document font.

By manually selecting them.

Using a regular expression.

By highlighting all text.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What style is applied to the highlighted email addresses?

Green text with a white background.

Black text with a yellow background.

Blue text with a red background.

Red text with a blue background.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to find the text location of an email address?

searchText

locateText

findText

getTextLocation

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?