HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
MaLeLabTs
RegexGenerator
Java2015–2021
MaLeLabTs / RegexGenerator

RegexGenerator

This project contains the source code of a tool for generating regular expressions for text extraction: 1. automatically, 2. based only on examples of the desired behavior, 3. without any external hint about how the target regex should look like

8Distinct people
8Mentions
0Explicit recommenders
953GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

This project contains the source code of a tool for generating regular expressions for text extraction: 1. automatically, 2. based only on examples of the desired behavior, 3. without any external hint about how the target regex should look like

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year8 dated mentions

Observed mentions: 2015-04-28 18:22:23 UTC to 2021-05-11 14:56:40 UTC.

012342015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 4 mentions; 2 submissions, 2 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC422
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC202
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC000
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC110
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101

What Hacker News says

8 sources
I thought you meant generate strings from a regex. But you actually want to infer a regex from a set of example strings. I am unaffiliated with the authors of the following paper. I only think that it might act a gateway in aiding you in finding other relevant literature if its implementation does not turn out to be useful. > Inference of Regular Expressions for Text Extraction from Examples (Alberto Bartoli, Andrea De Lorenzo, Eric Medvet, and Fabiano Tarlao) 2016 doi:10.1109/TKDE.2016.2515587 https://www.human-competitive.org/sites/default/files/bartol... Which has a GPLv3 implementation in Java: https://github.com/MaLeLabTs/RegexGenerator It also happens to be on the first Google search result page for: > infer a regex from a set of strings
In Ask HN: Reverse Generating Regexp's
This Regex Generator site works as follows, you provide text examples by highlighting the strings to extract; the strings to not extract are the surrounding text. The Regex Generator finds out a regular expression that complies with provided examples and performs the desired text extraction task. This is a research project of the Machine Learning Lab http://machinelearning.inginf.units.it/ The engine has also been released opensource here: https://github.com/MaLeLabTs/RegexGenerator
In A site that generates regexs based off examples given
hi guys, thank you for your interest in our system of automatic generation of regex. we are experiencing some trouble with connectivity due to the... unexpected popularity :) we are working to solve this, but we are a very small research group with limited resources. meanwhile, if you are interested in the details of our algorithm take a look at the source code hosted here: https://github.com/MaLeLabTs/RegexGenerator
In Generate Regex from Examples

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.