How can I pull the string that match regex pattern.
String = "Someting 1245:1000, someting 45678:2000, someting 100:1234"
I need only 1245, 45678, 100 just before the ":"
Sub short()
Dim RegEx As Object, MyString As String
Dim match1 As Variant
Set RegEx = CreateObject("VBScript.RegExp")
With RegEx
.Pattern = "^[\d\d\d\d:\d\d\d\d]"
End With
end sub

(\d+)\:work for this (capture one or more digits that are immediately followed by a colon)?