Disambiguation of Regular Expressions with Backreferences via Term Rewriting
In this paper we focus on regular expressions with acyclic backreferences and treat them as a semiring satisfying certain theorems of Kleene algebra. Using these theorems as term rewriting rules, we introduce an algorithm for memory disambiguation of regular expressions. Furthermore, we demonstrate that the class of regexes with acyclic backreferences is closed under language reversal, in contrast to the generic backref-regexes, and provide the reversal algorithm, based on the disambiguation procedure. The results of our experiments revealed that, in certain cases, the matching time was significantly reduced when using the reversed expressions compared to the initial ones.
Authors
- Antonina Nepeivoda (ORCID: https://orcid.org/0000-0003-3949-2164)
- Daria N. Ismagilova (ORCID: https://orcid.org/0009-0000-9915-3039)
Institutions
- Bauman Moscow State Technical University (RU)
- Program Systems Institute of RAS (RU)
Publication Details
- Journal
- Modeling and Analysis of Information Systems
- Published
- 2024-12-13
- DOI
- https://doi.org/10.18255/1818-1015-2024-4-426-445
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00