Build your own grep
Write the pattern matcher behind every search box, from scratch.
grep has searched text on Unix since 1973. The same ideas power Ctrl+F, log search, form validation and code editors’ find-and-replace.
About 150 minutes across 7 stages. Skills: Regular expressions, Backtracking, Recursion, Tokenizing.
The guides are part of licode Club.
Stages
- Print lines that contain a plain-text pattern.
- Support \d and \w.
- Support [abc] and [^abc].
- Support ^ and $.
- Support + and ?.
- Support the wildcard ..
- Support (a|b) alternation.