Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

even with the examples on the landing page, the regexes generated for the emails are not really usable. it needs way more examples to produce the right thing.

even though I doubt most production code uses the actual, correct, rfc-compliant regex to match emails (it's a monster), this does nothing to improve the situation...



It really need some zero-shot or few-shot magic from LLMs, or even heuristics to detect common patterns like emails, and just generate a sane regex, rather than stuff like [A-Za-z]{2,}@libertylabs\.ai which will obviously fail with a few more examples.


It doesn’t make any sense to use a regex to check emails beside some very basic typos. Why do you need an email? To send messages to the user. Then do that: send a validation message and see if someone gets it.




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

Search: