Multi-modal Synthesis of Regular Expressions
Not on the map. Why?
Abstract (arXiv)
In this paper, we propose a multi-modal synthesis technique for automatically constructing regular expressions (regexes) from a combination of examples and natural language. Using multiple modalities is useful in this context because natural language alone is often highly ambiguous, whereas examples in isolation are often not sufficient for conveying user intent. Our proposed technique first parses the English description into a so-called hierarchical sketch that guides our programming-by-example (PBE) engine. Since the hierarchical sketch captures crucial hints, the PBE engine can leverage this information to both prioritize the search as well as make useful deductions for pruning the search space. We have implemented the proposed technique in a tool called Regel and evaluate it on over three hundred regexes. Our evaluation shows that Regel achieves 80% accuracy whereas the NLP-only and PBE-only baselines achieve 43% and 26% respectively. We also compare our proposed PBE engine against an adaptation of AlphaRegex, a state-of-the-art regex synthesis tool, and show that our proposed PBE engine is an order of magnitude faster, even if we adapt the search algorithm of AlphaRegex to leverage the sketch. Finally, we conduct a user study involving 20 participants and show that users are twice as likely to successfully come up with the desired regex using Regel compared to without it.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). First posted on arXiv 9 Aug 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 2; 2023: 4; 2024: 1; 2025: 2; 2026: 1.
13 papers.
Sort:
By area:
- 2022Top-Down Synthesis for Library Learningcited by 58
- 2023ConstitutionMaker: Interactively Critiquing Large Language Models by Converting Feedback into Principlescited by 33
- 2024Data Formulator 2: Iterative Creation of Data Visualizations, with AI Transforming Data Along the Waycited by 21
- 2021Multi-modal Program Inference: a Marriage of Pre-trainedLanguage Models and Component-based Synthesiscited by 12
- 2023InfeRE: Step-by-Step Regex Generation via Chain of Inferencecited by 5
- 2023ImageEye: Batch Image Processing Using Program Synthesiscited by 4
- 2023Efficient Bottom-Up Synthesis for Programs with Local Variablescited by 3
- 2021Making Table Understanding Work in Practicecited by 1
- 2025Gensors: Authoring Personalized Visual Sensors with Multimodal Foundation Models and Reasoningcited by 1
- 2025On Synthesis of Timed Regular Expressionscited by 1
- 2021Regular Expressions for Fast-response COVID-19 Text Classificationcited by 0
- 2022Neuro-Symbolic Regex Synthesis Framework via Neural Example Splittingcited by 0
1 more
- 2026RuleChef: Grounding LLM Task Knowledge in Human-Editable Rules1 Jul 2026
- 2025On Synthesis of Timed Regular Expressions8 Sep 2025
- 2025Gensors: Authoring Personalized Visual Sensors with Multimodal Foundation Models and Reasoning27 Jan 2025
- 2024Data Formulator 2: Iterative Creation of Data Visualizations, with AI Transforming Data Along the Way28 Aug 2024
- 2023Efficient Bottom-Up Synthesis for Programs with Local Variables7 Nov 2023
- 2023ConstitutionMaker: Interactively Critiquing Large Language Models by Converting Feedback into Principles24 Oct 2023
- 2023InfeRE: Step-by-Step Regex Generation via Chain of Inference8 Aug 2023
- 2023ImageEye: Batch Image Processing Using Program Synthesis6 Apr 2023
- 2022Top-Down Synthesis for Library Learning29 Nov 2022
- 2022Neuro-Symbolic Regex Synthesis Framework via Neural Example Splitting20 May 2022
- 2021Making Table Understanding Work in Practice11 Sep 2021
- 2021Multi-modal Program Inference: a Marriage of Pre-trainedLanguage Models and Component-based Synthesis3 Sep 2021
1 more
- 2022Top-Down Synthesis for Library Learningcited by 58
- 2023ConstitutionMaker: Interactively Critiquing Large Language Models by Converting Feedback into Principlescited by 33
- 2024Data Formulator 2: Iterative Creation of Data Visualizations, with AI Transforming Data Along the Waycited by 21
- 2021Multi-modal Program Inference: a Marriage of Pre-trainedLanguage Models and Component-based Synthesiscited by 12
- 2023InfeRE: Step-by-Step Regex Generation via Chain of Inferencecited by 5
- 2023ImageEye: Batch Image Processing Using Program Synthesiscited by 4
- 2023Efficient Bottom-Up Synthesis for Programs with Local Variablescited by 3
- 2021Making Table Understanding Work in Practicecited by 1
- 2025On Synthesis of Timed Regular Expressionscited by 1
- 2021Regular Expressions for Fast-response COVID-19 Text Classificationcited by 0
- 2022Neuro-Symbolic Regex Synthesis Framework via Neural Example Splittingcited by 0
- 2026RuleChef: Grounding LLM Task Knowledge in Human-Editable Rulescited by 0
- 2026RuleChef: Grounding LLM Task Knowledge in Human-Editable Rules1 Jul 2026
- 2025On Synthesis of Timed Regular Expressions8 Sep 2025
- 2024Data Formulator 2: Iterative Creation of Data Visualizations, with AI Transforming Data Along the Way28 Aug 2024
- 2023Efficient Bottom-Up Synthesis for Programs with Local Variables7 Nov 2023
- 2023ConstitutionMaker: Interactively Critiquing Large Language Models by Converting Feedback into Principles24 Oct 2023
- 2023InfeRE: Step-by-Step Regex Generation via Chain of Inference8 Aug 2023
- 2023ImageEye: Batch Image Processing Using Program Synthesis6 Apr 2023
- 2022Top-Down Synthesis for Library Learning29 Nov 2022
- 2022Neuro-Symbolic Regex Synthesis Framework via Neural Example Splitting20 May 2022
- 2021Making Table Understanding Work in Practice11 Sep 2021
- 2021Multi-modal Program Inference: a Marriage of Pre-trainedLanguage Models and Component-based Synthesis3 Sep 2021
- 2021Regular Expressions for Fast-response COVID-19 Text Classification18 Feb 2021