Published onApril 30, 2022Finding multiple matches - Building a Regex Engine Part 7regex-engineregexformal-languagesWe finally modernize the interface of the regex to allow searching for multiple matches
Published onApril 16, 2022Anchors and multiline mode - Building a Regex Engine Part 6regex-engineregexformal-languagesThe start and end of string anchors (^$) allow to check that a string starts or ends in some way. We'll implement this and in the process add the first regex mode: multiline
Published onApril 2, 2022Character classes and escape characters - Building a Regex Engine Part 5regex-engineregexformal-languagesWith character classes you can test if a character is inside a certain set of symbols. This makes regex simpler and more expressive
Published onMarch 10, 2022Adding capturing groups - Building a Regex Engine Part 4regex-engineregexformal-languagesA formal regex engine is cool but kind of useless. The first step to improve it is to implement capturing groups
Published onFebruary 22, 2022Creating a NFA from a regex - Building a Regex Engine Part 3regex-engineregexformal-languagesWe complete the engine for formal regex by translating a regex engine to a NFA