Hi All,
I have the following text coming from a text file:
This is a Test, Section test TS 544 Ord 0 (1246788-5) [2]
This is a Test2, Section test TS 544 Ord 675 (1246788) [3]
This is a Tes3 (345678)
This is a Test 5 TS 544 Ord 12345
I want to extract The number with in the round brackets and put that in variable so I want this:
Var a1 = The number within the round brackets so for e.g 1246788-5 or 345678
Var a2= I also want number in square brackets 2 or 3
Var a3 = I want to extarct all the numbers starting from TS and end at the next space so I need TS 544 ord 0, TS 544 Ord 675, TS 544 Ord 12345
These values are coming from the text file. Can I extract these values in C# or Vb.net using regular expression.
Go to the complete details ...