3 ms·
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
by compressedgas 5y ago
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/bartoli-delorenzo-medvet-tarlao-tkde-paper.pdf https://www.human-competitive.org/sites/default/files/bartol...
Which has a GPLv3 implementation in Java: https://github.com/MaLeLabTs/RegexGenerator 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
- sgt 5y agoInteresting, thanks!