I have a text file which has sections demarcated by lines in all capitals. Each section also begins with a quotation whose end is delimited by the sequence <0x1b>
I am using this
^[A-Z\s]+\n(.*?)(?=\x1b)
but find nothing.
In fact I cannot even find the line in all capitals (SECTION NAME) with this expression
^[A-Z]+$
Nothing is found
But this expression
^[A-Z]+
finds the first word of every line, capitalized or not