Published onMay 14, 2022Atomic groups - Building a Regex Engine Part 8regex-engineregexformal-languagesAtomic groups can be used to avoid unnecessary backtracking and optimize regex. In this post we explain them in detail and add them to the engine
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