assuming that you have a string with an arbitrary number of lines, each of which follows a pattern such as the one illustrated below,
Line 498: [Badsds()]
Line 499: protected override void Something() {
Line 500: base.Something();
What’s the regular expression that will capture the text after “Line \d+:\s*”?
If you are using
c#you can doOR
If you want to avoid reading all lines at once