mikemklee / eli5-regex

Smart form field validation with RegEx and OpenAI completions API

Home Page:https://eli5-regex.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explain RegEx like I'm 5

This is an experiment to explore the potentials of leveraging OpenAI's completions API for form field validation.

Given a RegEx pattern, we will use GPT-3.5 to generate a human-friendly description of what would match the pattern.

We could then use this description to render helper messages for form fields, to assist the user input valid values.

Similarly, we can use this for rendering validation error feedback.

image

About

Smart form field validation with RegEx and OpenAI completions API

https://eli5-regex.vercel.app

License:MIT License


Languages

Language:JavaScript 76.6%Language:CSS 21.8%Language:Shell 1.6%