vix.ing · top · new · best · stats · spec

RE#: High Performance Derivative-Based Regex Matching with Intersection, Complement, and Restricted Lookarounds

2024/07/30 by Ian Erik Varatalu, Margus Veanes, Juhan-Peep Ernits · 3 voices · 6 citations
Computer Science · #Natural Language Processing Techniques #semigroups and automata theory #Algorithms and Data Compression

paper · pdf · doi:10.1145/3704837

Abstract

We present a tool and theory RE # for regular expression matching that is built on symbolic derivatives, does not use backtracking, and, in addition to the classical operators, also supports complement, intersection and restricted lookarounds. We develop the theory formally and show that the main matching algorithm has input-linear complexity both in theory as well as experimentally. We apply thorough evaluation on popular benchmarks that show that RE # is over 71% faster than the next fastest regex engine in Rust on the baseline, and outperforms all state-of-the-art engines on extensions of the benchmarks often by several orders of magnitude.

Citations

Cited by

Discussions

Related