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

Create a regex that captures first, middle, and last names, as well as prefixes and suffixes, while handling hyphenated last names and multi-word last names like "de la Rosa" and "Von Neman". First and middle names may optionally be omitted, as well as prefixes and suffixes.

I’m waiting for ChatGPT-5 I guess…



How is that even possible for a human to write, especially the last part?


would need a database of names I think, to know "Von Neman" is probably a last name not first+last. Probabilities, that's what GPT is good at


Not what regex is good at, though.


True... if you're determined enough you could write one though.




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

Search: