Hacker News new | ask | show | jobs
Show HN: Text-to-Regex. Shows Assumptions. (text2regex.com)
4 points by vatsalaggarwal 1290 days ago
Text to Python `re` regex converter using GPT-3 that:

- States assumptions / what it has understood.

    - Example:  `Match any text file.` - >`Match a string that can contain anything at the beginning, but must end with one of ".txt", ".csv", ".tsv", ".rtf", ".log”.`

    - Lets you test the resulting regex on a string easily
GitHub: https://github.com/llmhub/text-to-regex

Open-source prompt: https://www.llmhub.com/2/functions/21/share