I asked the above question nearly 6 years ago (when I was just a wee lad on SO). I was trying to create a regex for faculty names, which could have accented characters like é. So I tried to capture them in a regex to validate the input. Well, turns out the only thing I actually needed was to capture last_name, first_name
. Now, the question has over 120 upvotes and the answers on it as well. However, my accepted answer, while it solves my problem, might obscure the actual answers from people who really need a JavaScript regex for diacritics.
Should I change my accepted answer to Maycow Moura's answer?