RE#: High Performance Derivative-Based Regex Matching with Intersection, Complement and Lookarounds

Ian Erik Varatalu, Margus Veanes, Juhan-Peep Ernits
{"title":"RE#: High Performance Derivative-Based Regex Matching with Intersection, Complement and Lookarounds","authors":"Ian Erik Varatalu, Margus Veanes, Juhan-Peep Ernits","doi":"arxiv-2407.20479","DOIUrl":null,"url":null,"abstract":"We present a tool and theory RE# for regular expression matching that is\nbuilt on symbolic derivatives, does not use backtracking, and, in addition to\nthe classical operators, also supports complement, intersection and\nlookarounds. We develop the theory formally and show that the main matching\nalgorithm has input-linear complexity both in theory as well as experimentally.\nWe apply thorough evaluation on popular benchmarks that show that RE# is over\n71% faster than the next fastest regex engine in Rust on the baseline, and\noutperforms all state-of-the-art engines on extensions of the benchmarks often\nby several orders of magnitude.","PeriodicalId":501124,"journal":{"name":"arXiv - CS - Formal Languages and Automata Theory","volume":"31 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Formal Languages and Automata Theory","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.20479","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

We present a tool and theory RE# for regular expression matching that is built on symbolic derivatives, does not use backtracking, and, in addition to the classical operators, also supports complement, intersection and lookarounds. We develop the theory formally and show that the main matching algorithm has input-linear complexity both in theory as well as experimentally. We apply thorough evaluation on popular benchmarks that show that RE# is over 71% faster than the next fastest regex engine in Rust on the baseline, and outperforms all state-of-the-art engines on extensions of the benchmarks often by several orders of magnitude.
RE#:基于派生词的高性能 Regex 匹配(带交集、补全和查找功能
我们提出了一种用于正则表达式匹配的工具和理论 RE#,它建立在符号导数的基础上,不使用回溯,除了经典运算符之外,还支持补码、交集和遍历。我们在流行的基准上进行了全面评估,结果表明 RE# 比 Rust 中下一个最快的 regex 引擎快 71%,在基准的扩展上,RE# 的性能比所有最先进的引擎高出几个数量级。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信