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)?
- \w
- \s
- .
- \D
- \d
Which regex metacharacter matches any whitespace character?
- \w
- \S
- \d
- \s
- \b
Which regex metacharacter matches any "word" character (letters, digits, underscore)?
- \W
- \w
- \s
- \b
- \d
Which anchor matches the start of a line (in default mode)?
- $
- ^
- \Z
- \b
- \A
Which anchor matches the end of a line (in default mode)?
- $
- \b
- \B
- ^
- \Z
Related categories
Python (Coding)
Python syntax and standard-library usage, from quick scripts to full applications.
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
Security
General information security concepts: common threats and standard defenses.
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.