From Regular Expression Matching to Parsing
Abstract
Given a regular expression and a string , the regular expression parsing problem is to determine if matches and if so, determine how it matches, e.g., by a mapping of the characters of to the characters in . 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 matches regular expression into algorithms that can construct a corresponding mapping. As a consequence, we obtain the first efficient linear space solutions for regular expression parsing.
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}
}