REGEXMATCH, REGEXEXTRACT, and REGEXREPLACE
REGEXMATCH returns TRUE or FALSE. REGEXEXTRACT returns the first capture group when the pattern has one, otherwise the whole match, as text.
REGEXREPLACE replaces every match. These drills use ordinary patterns. The grid does not accept lookahead.
These drills are graded by calculating the formula in the practice grid.
Drills
- PremiumREGEXMATCH product codesPractice Google Sheets REGEXMATCH inside ARRAYFORMULA to test codes shaped like two letters, a hyphen, and four digits.
- PremiumREGEXEXTRACT an order idPractice Google Sheets REGEXEXTRACT to pull the digits from an order note. The capture comes back as text.
- PremiumREGEXREPLACE a phone down to digitsPractice Google Sheets REGEXREPLACE to strip every non-digit from a phone number while keeping the digit text.
- PremiumClean a name columnPractice a Google Sheets cleanup column that uses ARRAYFORMULA, TRIM, and REGEXREPLACE to fix spaced names.