HF RL Explorer

Task: Negate a Specific Word in Regex

Task: Negate a Specific Word in Regex: a task in Terminal-Lego-15k (Harbor dataset). In regular expressions, ^bar negates individual characters (meaning "not b, a, or r"), but it does not negate the word "bar" as a whole. Your task is to demonstrate how to properly negate a specific word in regex…

The task

In regular expressions, `[^bar]` negates individual characters (meaning "not b, a, or r"), but it does **not** negate the word "bar" as a whole. Your task is to demonstrate how to properly negate a specific word in regex by filtering lines from an input file.

Part of PrimeIntellect/Terminal-Lego-15k.