Regex: Actually Useful Patterns
Quantifiers and Greedy vs Lazy Matching/Assessment
Practice & Assessment
Test your understanding of Quantifiers and Greedy vs Lazy Matching
Multiple Choice Questions
51
Why does /<.+>/ match '<b>bold</b>' as a single match instead of just '<b>'?
2
What does the ? in .*? do differently from .*?
3
Which pattern correctly matches a 5-to-10 character username containing only letters and digits?
4
Which approach is generally faster for matching content inside double quotes?
5
What does {3,} mean as a quantifier?
Coding Challenges
11
EasyHTML Tag Stripper
Write a function stripTags(html) that removes all HTML tags from a string and returns plain text.
Mini Project
1
MediumMarkdown to Plain Text Converter
Build a function mdToPlain(markdown) that strips common Markdown syntax and returns readable plain text.
