Email shape check
=REGEXMATCH(A2, "^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$") flags plausible email formatting.
REGEXMATCH returns TRUE or FALSE when text matches a regular expression pattern. Use it in FILTER, IF, and COUNTIF to validate emails, extract structure flags, or flag messy imports before they break downstream reports.
Use REGEXMATCH when simple wildcards are not enough: validate formats, detect digits-only fields, or filter rows matching a pattern.
Skip REGEXMATCH for basic contains checks. SEARCH or simple = may be faster to read for teammates.
Put the text cell or expression as the first argument.
Write a regex pattern string as the second argument.
Anchor patterns with ^ and $ when the whole cell must match.
Combine with FILTER to return rows where REGEXMATCH is TRUE.
Escape special regex characters when matching literals.
Test patterns in a scratch column before wrapping in FILTER.
=REGEXMATCH(A2, "^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$") flags plausible email formatting.
=REGEXMATCH(B2, "^\d+$") verifies SKU is numeric before VLOOKUP.
=FILTER(Data!A:D, REGEXMATCH(Data!C:C, "invoice-\d+")) keeps invoice-coded rows.
Build this without starting from a blank cell
Use a Better Sheets tool for REGEXMATCH, then watch a walkthrough when you want the full pattern.
Watch how REGEXMATCH works
Guides that explain REGEXMATCH in more depth.
REGEXEXTRACT returns the portion of text that matches a regular expression, often using capture groups to pull IDs, domains, or codes from longer strings. It replaces manual LEFT/RIGHT/MID chains when patterns repeat.
Read guide →REGEXREPLACE finds text matching a regex pattern and replaces it with new text. Strip non-digits from phones, normalize spaces, or remove tags from HTML snippets in bulk without one-off find-and-replace menus.
Read guide →SPLIT divides one text cell into multiple cells spilled across columns using a delimiter such as comma, space, or custom string. It is the formula version of Text to columns for live data like tags, full names, or combined codes.
Read guide →FILTER returns only the rows from a range that meet one or more conditions. Conditions are boolean arrays the same height as the data. FILTER spills results automatically, so it replaced many INDEX/SMALL helper-column patterns for live subsets.
Read guide →Done reading about REGEXMATCH?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.