Searching All including Overlapping Matches through Regular Expressions
In this paper, we explore the problem of finding all substrings, including those that overlap with others, that match given regular expressions in a long text. The standard methods (like finditer in Python or NextMatch in C#) are inefficient for the task due to the challenging requirement of finding all possible overlaps. We propose two new methods to tackle the problem: an efficient one based on automata and a suffix tree and an enhanced naive solution based solely on automata. Our approaches were evaluated in a series of experiments against each other.
Authors
- Wojciech Wieczorek (ORCID: https://orcid.org/0000-0003-3191-9151)
- Arkadiusz Nowakowski (ORCID: https://orcid.org/0000-0001-8304-5746)
- Łukasz Strąk (ORCID: https://orcid.org/0000-0002-1074-2847)
Institutions
- University of Bielsko-Biała (PL)
- University of Silesia in Katowice (PL)
Publication Details
- Journal
- Procedia Computer Science
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1016/j.procs.2025.09.352
- Primary Topic
- Algorithms and Data Compression
- Type
- article
- Field-Weighted Citation Impact
- 0.00