Function Nom(c)
Application.Volatile
Set obj = CreateObject("vbscript.regexp")
obj.Pattern = "([A-Z'ÔË]{2,}\s*-?)+"
Set a = obj.Execute(c)
If a.Count > 0 Then Nom = a(0) Else Nom = ""
End Function
Function Prénom(c)
Application.Volatile
Set obj = CreateObject("vbscript.regexp")
c = Replace(Replace(Replace(c, "M.", ""), "Mme", ""), "Mle", "")
obj.Pattern = "([A-Z][a-zëéèô]+\s*-?)+"
Set a = obj.Execute(c)
If a.Count > 0 Then Prénom = a(0) Else Prénom = ""
End Function
Function civilité(c)
Application.Volatile
Set obj = CreateObject("vbscript.regexp")
obj.Pattern = "(Mme|M\.|Mle)\s"
Set a = obj.Execute(c)
If a.Count > 0 Then civilité = a(0) Else civilité = ""
End Function