English

From Regular Expression Matching to Parsing

Data Structures and Algorithms 2019-01-30 v2

Abstract

Given a regular expression RR and a string QQ, the regular expression parsing problem is to determine if QQ matches RR and if so, determine how it matches, e.g., by a mapping of the characters of QQ to the characters in RR. Regular expression parsing makes finding matches of a regular expression even more useful by allowing us to directly extract subpatterns of the match, e.g., for extracting IP-addresses from internet traffic analysis or extracting subparts of genomes from genetic data bases. We present a new general techniques for efficiently converting a large class of algorithms that determine if a string QQ matches regular expression RR into algorithms that can construct a corresponding mapping. As a consequence, we obtain the first efficient linear space solutions for regular expression parsing.

Keywords

Cite

@article{arxiv.1804.02906,
  title  = {From Regular Expression Matching to Parsing},
  author = {Philip Bille and Inge Li Gørtz},
  journal= {arXiv preprint arXiv:1804.02906},
  year   = {2019}
}
R2 v1 2026-06-23T01:17:46.508Z