Flashcards › Math & Programming
Math & Programming

Free Regex Basics Flashcards

Regular expressions are twenty symbols that turn text problems into one-liners — and they show up in every language, editor, and interview. These cards drill the core tokens until they read like words.

Study these 10 starter cards

QUESTION
Tap the card to reveal the answer
QWhat does . match in a regex?
AAny single character (except newline by default)
QWhat does \d match?
AA digit 0–9
QWhat does + mean after a token?
AOne or more of it
QWhat does * mean after a token?
AZero or more of it
QWhat does ^ and $ anchor?
AStart and end of the string (or line)
QWhat does [abc] match?
AOne character: a, b, or c
QWhat does \w match?
AA word character: letter, digit, or underscore
QWhat does ? mean after a token?
AZero or one — makes it optional (also makes quantifiers lazy: +?)
QWhat do parentheses ( ) do?
AGroup tokens and capture the matched text
QWhat does a|b mean?
AMatch a OR b

Turn these into lasting memory

Reading answers is recognition — remembering them next month takes spaced repetition. Build your own regex basics deck and we'll schedule every review at the right moment.

Create your free deck →

How to study regex basics with flashcards

Related flashcard topics

TypeScript BasicsReact BasicsComputer Science TermsExcel Shortcuts & FunctionsMultiplication TablesAlgebra Basics

Your first deck is free forever

No ads, no credit card — import from Anki or Quizlet, or start from these cards.

Start studying free →