This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mygrep: Implementation inspired by https://app.codecrafters.io/courses/grep. | |
# Includes support for grep -E functions: | |
# - ^: Start of string anchor | |
# - $: End of string anchor | |
# - \w, \d: Character classes | |
# - []: Character groups | |
# - *, +: Matching certain numbers of times | |
# - .: Wildcard | |
# - |: Alternation | |
# - (), \{digit}: Backreferences, including nested backreferences |