---
title: "REGEX functions practice in Google Sheets | PracticeExcel"
description: "Practice REGEXMATCH, REGEXEXTRACT and REGEXREPLACE in Google Sheets with regular expressions in a live grid."
canonical_url: "https://practiceexcelonline.com/sheets/practice/regex"
locale: en
meta:
  "og:description": "Practice REGEXMATCH, REGEXEXTRACT and REGEXREPLACE in Google Sheets with regular expressions in a live grid."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_REGEX%2Bfunctions%2Bpractice%2Bin%2BGoogle%2BSheets%2Cdescription_~UHJhY3RpY2UgUkVHRVhNQVRDSCwgUkVHRVhFWFRSQUNUIGFuZCBSRUdFWFJFUExBQ0UgaW4gR29vZ2xlIFNoZWV0cyB3aXRoIHJlZ3VsYXIgZXhwcmVzc2lvbnMgaW4gYSBsaXZlIGdyaWQu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiTm90ZSIsIkhhcyBhIG51bWJlciJdfSx7Im4iOjIsImNlbGxzIjpbIk9yZGVyIDEwMDEgc2hpcHBlZCIsIiJdfV0sInRhcmdldCI6WzEsMV19fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvcmVnZXgi%2Cs_adHQBhm6Bsz9cxHP.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "REGEX functions practice in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_REGEX%2Bfunctions%2Bpractice%2Bin%2BGoogle%2BSheets%2Cdescription_~UHJhY3RpY2UgUkVHRVhNQVRDSCwgUkVHRVhFWFRSQUNUIGFuZCBSRUdFWFJFUExBQ0UgaW4gR29vZ2xlIFNoZWV0cyB3aXRoIHJlZ3VsYXIgZXhwcmVzc2lvbnMgaW4gYSBsaXZlIGdyaWQu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiTm90ZSIsIkhhcyBhIG51bWJlciJdfSx7Im4iOjIsImNlbGxzIjpbIk9yZGVyIDEwMDEgc2hpcHBlZCIsIiJdfV0sInRhcmdldCI6WzEsMV19fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvcmVnZXgi%2Cs_adHQBhm6Bsz9cxHP.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **REGEX functions practice in Google Sheets**

Find, pull out and replace patterns in text with REGEXMATCH, REGEXEXTRACT and REGEXREPLACE.

[**Start the first exercise**](https://practiceexcelonline.com/sheets/practice/regex/regexmatch)

REGEXEXTRACT(REGEXMATCH(REGEXREPLACE(

1. [**1****Test text with REGEXMATCH**In B2, use REGEXMATCH to check whether the note in A2 contains a number. The pattern \\d+ means one or more digits.](https://practiceexcelonline.com/sheets/practice/regex/regexmatch)
2. [**2****Pull out a number with REGEXEXTRACT****Premium**In B2, use REGEXEXTRACT to pull the order number out of the note in A2. Use the pattern \\d+.](https://practiceexcelonline.com/sheets/practice/regex/regexextract-number)
3. [**3****Keep only digits with REGEXREPLACE****Premium**In B2, use REGEXREPLACE to remove everything from A2 that is not a digit. \\D (capital D) means any character that is not a digit.](https://practiceexcelonline.com/sheets/practice/regex/regexreplace-digits)

## **Functions in this topic**

- [**REGEXEXTRACT**](https://practiceexcelonline.com/sheets/functions/regexextract)
- [**REGEXMATCH**](https://practiceexcelonline.com/sheets/functions/regexmatch)
- [**REGEXREPLACE**](https://practiceexcelonline.com/sheets/functions/regexreplace)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/sheets/practice/regex#webpage","description":"Practice REGEXMATCH, REGEXEXTRACT and REGEXREPLACE in Google Sheets with regular expressions in a live grid.","name":"REGEX functions practice in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/regex","@type":["WebPage","CollectionPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/regex#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/regex"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/regex#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"REGEX functions practice in Google Sheets","position":3}]},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
