Function FindStringNumbers(strInput As String) As String
Dim objReg As Object
Dim objMatches As Object
Dim objMatch As Object
Set objReg = CreateObject("VBScript.RegExp")
With objReg
.IgnoreCase = True
.Multiline = False
.Global = True
.Pattern = "\|\|[0-9]*"
Set objMatches = .Execute(strInput)
For Each objMatch In objMatches
FindStringNumbers = FindStringNumbers & Replace(Trim(objMatch), "||", "") & " "
Next objMatch
End With
FindStringNumbers = Replace(Trim(FindStringNumbers), " ", ",")
Set objReg = Nothing
End Function