I’m looking for a good JavaScript RegEx to convert names to proper cases. For example:
John SMITH = John Smith Mary O'SMITH = Mary O'Smith E.t MCHYPHEN-SMITH = E.T McHyphen-Smith John Middlename SMITH = John Middlename SMITH
Well you get the idea.
Anyone come up with a comprehensive solution?
Something like this?