Regex (Coding) Quiz

Regular expression syntax and pattern matching — a small language every developer eventually needs.

This category currently has 40 questions in the SERVBG quiz bank. Below are a few sample questions — the full interactive quiz shuffles through the whole set with instant scoring.

Sample questions

Which regex metacharacter matches any single digit (0-9)?
Which regex metacharacter matches any whitespace character?
Which regex metacharacter matches any "word" character (letters, digits, underscore)?
Which anchor matches the start of a line (in default mode)?
Which anchor matches the end of a line (in default mode)?
Start the full quiz ›

Related categories

Python (Coding)
Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
187 questions
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
186 questions
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
150 questions
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
148 questions
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.
145 questions