Verified and Efficient Matching of Regular Expressions with Lookaround

Regular expressions can be extended with lookarounds for contextual matching. This paper discusses a Coq formalization of the theory of regular expressions with lookarounds. We provide an efficient and purely functional algorithm for matching expressions with lookarounds and verify its correctness. The algorithm runs in time linear in both the size of the regular expression as well as the input string. Our experimental results provide empirical support to our complexity analysis. To the best of our knowledge, this is the first formalization of a linear-time matching algorithm for regular expressions with lookarounds.

Authors

Institutions

Publication Details

Published
2025-01-10
DOI
https://doi.org/10.1145/3703595.3705884
Citations
5
Primary Topic
Algorithms and Data Compression
Type
article
Field-Weighted Citation Impact
12.40
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Verified and Efficient Matching of Regular Expressions with Lookaround

Agnishom Chattopadhyay, Konstantinos Mamouras, Wu Angela Li
5 citations
Algorithms and Data Compression
12.40
article

Verified and Efficient Matching of Regular Expressions with Lookaround

Agnishom Chattopadhyay, Konstantinos Mamouras, Wu Angela Li
article en
5 citations

Abstract

Regular expressions can be extended with lookarounds for contextual matching. This paper discusses a Coq formalization of the theory of regular expressions with lookarounds. We provide an efficient and purely functional algorithm for matching expressions with lookarounds and verify its correctness. The algorithm runs in time linear in both the size of the regular expression as well as the input string. Our experimental results provide empirical support to our complexity analysis. To the best of our knowledge, this is the first formalization of a linear-time matching algorithm for regular expressions with lookarounds.

Rice University (US)
Openalex Percentile: Top 2%
Algorithms and Data Compression
12.40
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.