Hello
I want to use correct Syntax for Extracting Numerical Values using Regular Expressions
The below are the different Patterns of Numerical Values from different Text files
NOTE there are other Numerical Contents eg date, Time, Prices which are also in the Content of Text file. For time being
I would not like to extract those date, Time, Price Values Etc.
I would only like single pattern defined to extract below Data as shown NOTE there is Space before the numerical digit begin
The above pattern only applicable for 1009 1020 8988 909 other Patterns not able to extract
I've used following Link to To Test Regular Expressions in order to obtain the pattern but somehow not successful
Will appreciate your valuable inputs
Thanks
NimishK
I want to use correct Syntax for Extracting Numerical Values using Regular Expressions
The below are the different Patterns of Numerical Values from different Text files
NOTE there are other Numerical Contents eg date, Time, Prices which are also in the Content of Text file. For time being
I would not like to extract those date, Time, Price Values Etc.
I would only like single pattern defined to extract below Data as shown NOTE there is Space before the numerical digit begin
1009 1020 8988 909
1961 0050 1902
1212 2161 7823 2004
1005 6033 7102 35
3 9911 9797 3406
VBA Code:
Dim numStr As Str
Dim rgx As Object
Set rgx = New RegExp
rgx.Pattern ="\s\d{4}\s\d{4}\s\d{4}\s\d{3}?"
rgx.Pattern ="\s\d{1,}\s\d{1,}\s\d{1,}\s\d{3}?"
I've used following Link to To Test Regular Expressions in order to obtain the pattern but somehow not successful
Will appreciate your valuable inputs
Thanks
NimishK