I'm looking for datasets that contain a list of regexps where each regexp is associated with at least one sentence written in English that explains what the regexp does. Examples:
- "All 3-letter words ending by .at except bat" can be expressed in regexp as
[^b]at
- "Any word starting with the letter s" can be expressed in regexp as
s.*
I am aware of the dataset provided with Kushman, Nate, and Regina Barzilay. "Using semantic unification to generate regular expressions from natural language." North American Chapter of the Association for Computational Linguistics (NAACL), 2013., but I'm looking for more data.
I am also aware that there exist different regular expression standards (more precisely the POSIX standard isn't always respected) and I'm okay if the regexp output is not POSIX although I would prefer it was. By the same token I know that two regular expressions can be equivalent just like two description written in English can be equivalents.
Ideally it would be great if each regexp comes with some positive and negative examples as well (e.g. for s.*
, "hello" is a negative example, "salut" is a positive example), but it's okay if not.
\b
to start at a word boundry.