I want to make a dynamic list that uses Regex.Split
separating each item by the new line character, except when in the (...) fields in my lines of code, as follows:
var x = 'the quick fox jumps over the lazy dog'
var n = 'myChar (string:substring, x, 3) !!!'
writeLn 'first value = $x, final = $n'
if $n = $null (
#aqui está o erro
#ele da split aqui
writeLn 'error'
)
#e assim por diante...
I want all rows separated by new rows, example I want :
ind. valor do elemento
------- -------------------------------------------------
0 var x = 'the quick fox jumps over the lazy dog'
1 var n = 'myChar (string:substring, x, 3) !!!'
2 writeLn 'first value = $x, final = $n'
3 if $n = $null (
#aqui está o erro
#ele da split aqui
writeLn 'error'
)
4 #e assim por diante...
But you're returning this:
ind. valor do elemento
------- -------------------------------------------------
0 var x = 'the quick fox jumps over the lazy dog'
1 var n = 'myChar (string:substring, x, 3) !!!'
2 writeLn 'first value = $x, final = $n'
3 if $n = $null (
4 #aqui está o erro
5 #ele da split aqui
6 writeLn 'error'
7 )
#e assim por diante...
Below is an image to better describe what is detected:
This is the Regex I am using: (?!.*('|\(|\)))\n
I accept responses in Regex, or VB.NET / C # (VB preference)