HF RL Explorer

Task: Highlight Text Pattern While Displaying All Lines

Task: Highlight Text Pattern While Displaying All Lines: a task in Terminal-Lego-15k (Harbor dataset). When using grep with a regular expression, it highlights matching text but only shows lines that contain matches. Your task is to find a way to highlight text matching a pattern (similar to…

The task

When using `grep` with a regular expression, it highlights matching text but only shows lines that contain matches. Your task is to find a way to highlight text matching a pattern (similar to grep's highlighting behavior) while still displaying ALL lines from the input, not just the matching ones.

Part of PrimeIntellect/Terminal-Lego-15k.