HF RL Explorer

Task: Regex Pattern Matching with Negative Lookahead

Task: Regex Pattern Matching with Negative Lookahead: a task in Terminal-Lego-15k (Harbor dataset). You need to write a script that processes a text file containing strings with multiple parenthesized expressions. Your task is to remove all parenthesized content EXCEPT for valid 4-digit year…

The task

You need to write a script that processes a text file containing strings with multiple parenthesized expressions. Your task is to remove all parenthesized content EXCEPT for valid 4-digit year patterns (e.g., `(2001)`).

Part of PrimeIntellect/Terminal-Lego-15k.