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)?
- \D
- .
- \d
- \w
- \s
Which regex metacharacter matches any whitespace character?
- \S
- \s
- \d
- \w
- \b
Which regex metacharacter matches any "word" character (letters, digits, underscore)?
- \W
- \d
- \b
- \s
- \w
Which anchor matches the start of a line (in default mode)?
- $
- ^
- \b
- \A
- \Z
Which anchor matches the end of a line (in default mode)?
- \B
- ^
- \Z
- $
- \b
Related categories
Python (Coding)
Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.