mustak_m
12 years agoOccasional Contributor
RegExp.Execute method
I am using following snippet to get the matching string. Sub ExtractDemo Dim InStr, regEx InStr = "Description:" &_ "Handles all actions supported " &_ "Input Para...
- 12 years agoHi Mustak,
By default, * is greedy, that is, matches the longest string possible. Try this instead:
regEx.Pattern = "Des.*?n"
regEx.Pattern = "oIn.*?n"