HF RL Explorer

Task: Regular Expression Matching a Multiline Block of Text

Task: Regular Expression Matching a Multiline Block of Text: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that uses regular expressions to parse a multiline text file containing blocks of data. Each block consists of a header line followed by a blank line, then multiple…

The task

Write a Python script that uses regular expressions to parse a multiline text file containing blocks of data. Each block consists of a header line followed by a blank line, then multiple lines of uppercase text, followed by another blank line. The script must capture both the header text and the combined uppercase…

Part of PrimeIntellect/Terminal-Lego-15k.