Function TachMa(ByVal str$) As String
Dim a, b, c, S, P, i, j
a = Array("PT", "CC", "B", "MN", "BAC")
b = Array(5, 5, 3, 5, 5)
c = Array(2, 2, 2, 1, 0)
S = Split(Trim(Replace(str, ".", " ")), " ")
For i = 0 To UBound(S)
For j = 0 To UBound(a)
If InStr(1, S(i), a(j), 0) Then
P = Split(S(i), a(j))
If UBound(P) = 1 Then
If IsNumeric(P(0)) And Len(P(0)) <= b(j) And Len(P(1)) <= c(j) Then
If j = 4 Then P(1) = "0"
If IsNumeric(P(1)) Then TachMa = TachMa & ", " & S(i)
End If
End If
End If
Next j
Next i
If TachMa <> Empty Then TachMa = Mid(TachMa, 3)
End Function