Hello
Anyone has any idea How can I Match Numerical/Digit beginning with Zero Only (single digit /First digit) . I've come across some links
using the same with REGEX but did not understand as it has gone over my head
in below coding have few numerical data and from below string How to get the following Number only 000106714972555
It Prints only 90200025272451
Your input and correction will be helpful
Thanks
NimishK
Anyone has any idea How can I Match Numerical/Digit beginning with Zero Only (single digit /First digit) . I've come across some links
using the same with REGEX but did not understand as it has gone over my head
in below coding have few numerical data and from below string How to get the following Number only 000106714972555
VBA Code:
Dim stringOne As String
Dim regexOne As Object
Set regexOne = New RegExp
regexOne.Pattern ="\b\d{10, }\b"
StringOne = "90200025272451 PYMT OF BILL NO 1634 000106714972555 INR 17,250.00"
Set theMatches = regexOne.Execute(stringOne)
Debug.Print regexOne
It Prints only 90200025272451
Your input and correction will be helpful
Thanks
NimishK
Last edited: