Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Text-to-Regex. Shows Assumptions. (text2regex.com)
4 points by vatsalaggarwal on Dec 14, 2022 | hide | past | favorite
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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: