HF RL Explorer

Task: Non-Greedy Pattern Matching in Command Line

Task: Non-Greedy Pattern Matching in Command Line: a task in Terminal-Lego-15k (Harbor dataset). You need to extract content between HTML-like tags using non-greedy (lazy) matching from the command line. Standard grep uses greedy matching by default, which captures the longest possible match. Your…

The task

You need to extract content between HTML-like tags using non-greedy (lazy) matching from the command line. Standard grep uses greedy matching by default, which captures the longest possible match. Your task is to find a way to capture the **shortest** match instead.

Part of PrimeIntellect/Terminal-Lego-15k.