{"id":263771,"date":"2024-03-13T20:07:07","date_gmt":"2024-03-13T19:07:07","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=263771"},"modified":"2026-10-08T15:31:51","modified_gmt":"2026-10-08T13:31:51","slug":"regexmatch-google-sheets-exemplos","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-formulas\/regexmatch-google-sheets\/","title":{"rendered":"REGEXMATCH no Google Sheets: como usar e exemplos"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221; da_disable_devices=&#8221;off|off|off&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Google Sheets is a powerful and versatile tool that you can use with different types of data, including text. When working with text, you\u2019re likely interested in more than just matching string literals (exact strings of characters). Fortunately, a regular expression &#8211; regex &#8211; allows you to search for abstract patterns in text.<\/p>\n<p>Nowadays, regular expressions are very widely supported, not just in programming languages but also in text editors and text processing programs, as well as many other programs. Google Sheets has three functions that let you work directly with regular expressions.<\/p>\n<p>This guide will focus on the first function, but you have examples of all three: REGEXMATCH, REGEXEXTRACT, and REGEXREPLACE. After reviewing the function syntax, you have a reference guide with the basics for writing regular expressions. However, the best way to learn is to dive into the examples with step-by-step instructions. Once you get the hang of regular expressions, you\u2019ll use all three functions like a pro.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;what-is-the-regexmatch-function-in-googl&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>What is the REGEXMATCH function in Google Sheets?<\/h2>\n<p>The REGEXMATCH function in Google Sheets allows you to check whether cells contain a string matching a pattern given by a regular expression. The function returns TRUE if the pattern is matched and FALSE if it isn\u2019t.<\/p>\n<h3>REGEXMATCH function syntax<\/h3>\n<p>The REGEXMATCH function has the following syntax:<\/p>\n<pre class=\"hljs language-excel\">=REGEXMATCH(text,regular_expression)<\/pre>\n<ul>\n<li><strong>text:<\/strong> the text you want to search.<\/li>\n<li><strong>regular_expression:<\/strong> the string literal or string pattern that you want to match.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;special-characters-for-regular-expressio&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Special characters for regular expressions<\/h2>\n<p>If you&#8217;re going to write regular expressions to match string patterns rather than string literals, you need to know about the special characters and character classes. You can think of regular expressions as ways of describing abstract patterns in text. These patterns can combine string literals and special characters to represent different types or classes of characters.<\/p>\n<p>Don\u2019t worry about memorizing any of it, though. The best way to get the hang of regular expressions is to work through simple but detailed examples like those in this article. Below is a list containing different types of special characters you can use to build regular expressions.<\/p>\n<h3>Anchors<\/h3>\n<ul>\n<li><strong>^<\/strong> matches the start of the text in which you want to match the regular expression.<\/li>\n<li><strong>$<\/strong> matches the end of the text in which you want to match the regular expression.<\/li>\n<\/ul>\n<h3>Metacharacters<\/h3>\n<ul>\n<li><strong>.<\/strong> matches any single character except a new line.<\/li>\n<li><strong>|<\/strong> matches the character before it or the character after it.<\/li>\n<li><strong>\\<\/strong> indicates that the character after it is being used as a literal and not as a special character.<\/li>\n<\/ul>\n<h3>Character classes<\/h3>\n<ul>\n<li><strong>[ ]<\/strong> matches any character from a set of characters.<\/li>\n<li><strong>[^ ]<\/strong> matches any character not contained in the set.<\/li>\n<\/ul>\n<h3>Shorthand character classes<\/h3>\n<ul>\n<li><strong>\\w<\/strong> matches any word character &#8211; i.e., any letter, digit, or underscore.<\/li>\n<li><strong>\\W<\/strong> matches any non-word character &#8211; i.e., any character that isn\u2019t a letter, digit, or underscore.<\/li>\n<li><strong>\\s<\/strong> matches any whitespace character, including spaces, tabs, and line breaks.<\/li>\n<li><strong>\\S<\/strong> matches any character that isn\u2019t whitespace.<\/li>\n<li><strong>\\d<\/strong> matches any digit from 0 to 9.<\/li>\n<li><strong>\\D<\/strong> matches any character that isn\u2019t a digit from 0 to 9.<\/li>\n<\/ul>\n<h3>Group<\/h3>\n<ul>\n<li><strong>( )<\/strong> groups parts of your regular expression. For example, to apply a quantifier to a group of characters.<\/li>\n<\/ul>\n<h3>Quantifiers<\/h3>\n<ul>\n<li><strong>{n}<\/strong> matches the preceding expression exactly n times.<\/li>\n<li><strong>{n,m}<\/strong> matches the preceding expression a minimum of n times and a maximum of m times.<\/li>\n<li><strong>?<\/strong> matches the preceding character or group 0 or 1 times.<\/li>\n<li><strong>*<\/strong> matches the preceding character or group 0 or more times.<\/li>\n<li><strong>+<\/strong> matches the preceding character 1 or more times.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;how-to-use-regexmatch-in-google-sheets&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to use REGEXMATCH in Google Sheets?<\/h2>\n<p>You can use REGEXMATCH to check whether a text contains a specific string or string pattern expressed as a regular expression. Pass the text or the cell containing it as the first parameter of the function and the regular expression as the second parameter: REGEXMATCH(text,regular_expression).<\/p>\n<h3>1. Type function<\/h3>\n<p>In an empty cell, type the REGEXMATCH function.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-type-function.webp&#8221; alt=&#8221;REGEXMATCH in Google Sheets \u2014 =REGEXMATCH( typed in cell B2 with the text, regular_expression hint&#8221; title_text=&#8221;=REGEXMATCH( typed in cell B2 with the text, regular_expression hint&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>2. Add text<\/h3>\n<p>Type the text between quotation marks or select the cell containing the text.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-add-text.webp&#8221; alt=&#8221;REGEXMATCH in Google Sheets \u2014 cell A2 with Orange Jacket selected as the text argument&#8221; title_text=&#8221;Cell A2 with Orange Jacket selected as the text argument&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>3. Add regular expression<\/h3>\n<p>After the comma, type the regular expression between quotation marks or select the cell containing it.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-add-regular-expression.webp&#8221; alt=&#8221;REGEXMATCH in Google Sheets \u2014 the word Jacket typed in quotation marks as the regular expression&#8221; title_text=&#8221;The word Jacket typed in quotation marks as the regular expression&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>4. TRUE\/FALSE result<\/h3>\n<p>Close the parenthesis and press \u2018Enter\u2019 to see the result. Grab the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/fill-down-google-sheets\/\">fill handle<\/a> and drag it down to the last cell you want to check.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-true-false-result.webp&#8221; alt=&#8221;REGEXMATCH in Google Sheets \u2014 TRUE and FALSE results in the Jacket? column for each item&#8221; title_text=&#8221;TRUE and FALSE results in the Jacket? column for each item&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;examples-of-regexmatch-in-google-sheets&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Examples of REGEXMATCH in Google Sheets<\/h2>\n<p>Below, you have examples of using REGEXMATCH to check for string patterns that combine literal characters with special characters.<\/p>\n<h3>Regex example 1. Match words<\/h3>\n<p>Follow the steps below to use REGEXMATCH to check a text and match any of the words you specify using the OR symbol (|).<\/p>\n<p><strong>1. <\/strong>First, type the regular expression into an empty cell to avoid worrying about quotation marks. In this case, you want to match one of the following words: red, blue, or green, so the regular expression is &#8220;Red|Blue|Green&#8221;.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-match-words-regex.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 regular expression Red|Blue|Green typed in cell B1&#8243; title_text=&#8221;Regular expression Red|Blue|Green typed in cell B1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2. <\/strong>Type the REGEXMATCH function and select the cell containing the text you want to check.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-match-words-function.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 =REGEXMATCH(A4 typed under Contains Red, Green, or Blue&#8221; title_text=&#8221;=REGEXMATCH(A4 typed under Contains Red, Green, or Blue&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3. <\/strong>After the comma, select the cell containing the regular expression using <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/absolute-cell-reference\/\">absolute referencing<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-match-words-absolute-ref.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 formula with an absolute reference to the regex in cell B1&#8243; title_text=&#8221;Formula with an absolute reference to the regex in cell B1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4. <\/strong>Close the parenthesis and press \u2018Enter\u2019. Grab the fill handle and drag it down to the last row.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-match-words-result.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 Contains Red, Green, or Blue column filled with TRUE and FALSE&#8221; title_text=&#8221;Contains Red, Green, or Blue column filled with TRUE and FALSE&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Regex example 2. Match numbers<\/h3>\n<p>Follow the steps below to check whether a text contains any numbers.<\/p>\n<p><strong>1. <\/strong>In an empty cell, write the regular expression you want to use. In this case, you want to match numbers with one or more digits: &#8220;[0-9]+&#8221;.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-match-numbers-regex.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 digit pattern typed in cell B1 above the Contains number? column&#8221; title_text=&#8221;Digit pattern typed in cell B1 above the Contains number? column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2. <\/strong>Type the REGEXMATCH function and select the cell containing the text.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-match-numbers-function.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 =REGEXMATCH(A4 typed next to the text one&#8221; title_text=&#8221;=REGEXMATCH(A4 typed next to the text one&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3. <\/strong>After the comma, select the cell with the regular expression using absolute referencing.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-match-numbers-absolute-ref.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 formula with an absolute reference to the digit pattern in B1&#8243; title_text=&#8221;Formula with an absolute reference to the digit pattern in B1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4. <\/strong>Close the parenthesis and press \u2018Enter\u2019 to see the result. Grab the fill handle and drag it down to check the rest of the cells.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-match-numbers-result.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 Contains number? returns FALSE, TRUE, TRUE, FALSE for the four texts&#8221; title_text=&#8221;Contains number? returns FALSE, TRUE, TRUE, FALSE for the four texts&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Regex example 3. Starts with &amp; ends with<\/h3>\n<p>Follow the steps below to match based on the text\u2019s start and end. In this case, I want to match sentences that begin with a capital letter and end with a period. In between, there can be any number of characters of any type.<\/p>\n<p><strong>1. <\/strong>Write the regular expression you want to use in an empty cell. In this case, you want an uppercase letter at the beginning, followed by any number of any type of character (^[A-Z].*). Additionally, you want the last character to be a period, so you must precede it with a backslash to use it literally (\\.$). The complete regular expression is as follows: \u201c^[A-Z].*\\.$\u201d.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-starts-ends-with-regex.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 uppercase start and period end pattern typed in cell B1&#8243; title_text=&#8221;Uppercase start and period end pattern typed in cell B1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2. <\/strong>Type the REGEXMATCH function and select the cell containing the text.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-starts-ends-with-function.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 =REGEXMATCH(A4 typed next to This is my sentence.&#8221; title_text=&#8221;=REGEXMATCH(A4 typed next to This is my sentence.&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3. <\/strong>Select the cell with the regular expression after the comma, using absolute referencing.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-starts-ends-with-absolute-ref.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 formula with an absolute reference to the pattern in B1&#8243; title_text=&#8221;Formula with an absolute reference to the pattern in B1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4. <\/strong>Close the parenthesis and press \u2018Enter\u2019, then accept the suggested Autofill to copy the formula down.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-google-sheets-starts-ends-with-autofill.webp&#8221; alt=&#8221;REGEXMATCH Google Sheets example \u2014 TRUE for the first sentence and the Suggested autofill box&#8221; title_text=&#8221;TRUE for the first sentence and the Suggested autofill box&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;what-is-the-difference-between-regexextr&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>What is the difference between REGEXEXTRACT and REGEXMATCH?<\/h2>\n<p>There are three functions directly related to regular expressions in Google Sheets. While the REGEXMATCH function checks whether or not a string pattern is present in a text, REGEXEXTRACT extracts the matching string from the text. If you want to replace the matching string, you can use REGEXREPLACE.<\/p>\n<h3>REGEXMATCH<\/h3>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-vs-regexextract-regexmatch.webp&#8221; alt=&#8221;REGEXMATCH vs REGEXEXTRACT \u2014 REGEXMATCH returns TRUE for github in a GitHub URL&#8221; title_text=&#8221;REGEXMATCH returns TRUE for github in a GitHub URL&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>REGEXEXTRACT<\/h3>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-vs-regexextract-regexextract.webp&#8221; alt=&#8221;REGEXMATCH vs REGEXEXTRACT \u2014 REGEXEXTRACT returns github from the same URL&#8221; title_text=&#8221;REGEXEXTRACT returns github from the same URL&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>REGEXREPLACE<\/h3>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/regexmatch-vs-regexextract-regexreplace.webp&#8221; alt=&#8221;REGEXMATCH vs REGEXEXTRACT \u2014 REGEXREPLACE swaps github for usedtobegithub in the URL&#8221; title_text=&#8221;REGEXREPLACE swaps github for usedtobegithub in the URL&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;conclusion&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Conclusion<\/h2>\n<p>As you have seen, regular expressions offer an effective and efficient method for pattern matching. The strict and versatile syntax allows you to describe complex, abstract patterns that combine fixed and variable elements. Their compact and abstract nature can make them look scary at first, but now that you know how to read them, you can see how powerful they are. In Google Sheets, you can use regular expressions with the three REGEX functions, which can be combined with other formulas and built-in functions.<\/p>\n<p>You now know about the REGEXMATCH function in Google Sheets and the related functions REGEXEXTRACT and REGEXREPLACE. You know how to use all three functions using simple regular expressions to find exact and partial matches. You have step-by-step instructions on matching one word from a list, matching numbers, and matching the start and end of a string. Finally, you have a reference guide summarizing the syntax for regular expressions so that you can work on more complex expressions.<\/p>\n<p>Because REGEXMATCH returns TRUE or FALSE, it also works inside other formulas. Wrap it in an <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/google-sheets-if-functions\/\">IF function<\/a> to return your own labels, or use it as the condition of the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/filter-formula-google-sheets\/\">FILTER function<\/a> to keep only the rows that match. To find a plain word without a pattern, the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/search-formula-in-google-sheets\/\">SEARCH function<\/a> is enough.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aprenda a sintaxe da REGEXMATCH no Google Sheets e os caracteres especiais das express\u00f5es regulares, depois siga exemplos que identificam palavras, n\u00fameros e frases.<\/p>","protected":false},"author":2,"featured_media":263791,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[],"class_list":["post-263771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas"],"acf":[],"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/263771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=263771"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/263771\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/263791"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=263771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=263771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=263771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}