Hi
For confidentiality reasons, I can’t show my exact text. But the idea is that I want extract all the numbers (which can be in brackets) or dashes after some text.
But the text may contain text & number in brackets too.
Eg 1
Revenue (q4) - 2000
Ans: - 2000
Eg 2
Revenue (4q) (1500) 2000
Ans: (1500) 2000
Eg 3
Revenue (1500) 2000
Ans: (1500) 2000
I tried the below, but doesn’t work. There are “*” after each dot but it is not showing below. Thank you
Trim(System.Text.RegularExpressions.Regex.Match(item,“(?<=(Revenue).((\d.\w.\d.)){0,1}.)(-\s|-|(\d|\d).*”).Value)