smsbody=Sms1.Body
smsaddress=Sms1.Address
If smsbody.Contains("received") Then
Dim matcher1 As Matcher
matcher1 = Regex.Matcher("(\w+).*received usd(\S+) from(\S+) (\S+) (\S+)on (\S+) at (\S+) (\S+)New balance is usd(\S+).xxx", smsbody)
If matcher1.Find = True Then
' Log(matcher1.Match)
Dim receiptno, firstname,lastname,phoneno,date,time,time2,strdate As String
Dim amount,Balance As Int
receiptno = matcher1.Group(1) 'fetch the first captured group.
amount = matcher1.Group(2)
ListView1.AddSingleLine (receiptno)
ListView1.AddSingleLine(smsaddress)