2 ms·
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 lik
by sroussey 4y ago
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…
- primax 4y agoHow is that even possible for a human to write, especially the last part?
- 8n4vidtmkvmk 4y agowould 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
- alexthehurst 4y agoNot what regex is good at, though.
- 8n4vidtmkvmk 4y agoTrue... if you're determined enough you could write one though.