I have expression which looks like:
((type file1.csv file2.csv | Test +) & (type file3.csv file4.csv | Test +)) | Test + |Test sum | Test transpose | Test sum
The expression has many nested parenthesis and other special characters like
|
&
I want to evaluate the expression above in C# in this order:
1. (type file1.csv file2.csv | Test +)
2. (type file3.csv file4.csv | Test +)
3. 1 & 2 | Test +
4. 3 | Test sum
5. 4 | Test transpose
6. 5 | Test sum
I have referred to the sample solution shown here: Solution using the Regex as below: \(([^()]*)\)
How do I modify the regex above to consider |
and &
?
Thank you