I have the following file.
//TESTCASES=3
//MARK=9
[runscript]
nc dec s10 s11
[/runscript]
[checks]
[/checks]
[testcase]
// List: 1, 2, 3, 5, 0xA, -1
.global LIST
.data
LIST:
.word 1, 2, 3, 5, 0xA, -1
[/testcase]
I am trying to get the text between [runscript] and [/runscript] using grep and regex.
I have verified that the regex works on its own.
(?<=\[runscript\]\n)(.|\n)*(?=\[\/runscript\])
However, grep returns nothing. Is it an issue of the options? I have tried many of them alone and combined.
-P, -e, -E, -w, -o
What am I missing?