HF RL Explorer

Task: Regular Expression for Duplicate Consecutive Words

Task: Regular Expression for Duplicate Consecutive Words: a task in Terminal-Lego-15k (Harbor dataset). Write a regular expression that matches all duplicate consecutive words in a text file, regardless of case. Use this regex with a command-line tool to extract all instances of duplicate words…

The task

Write a regular expression that matches all duplicate consecutive words in a text file, regardless of case. Use this regex with a command-line tool to extract all instances of duplicate words from an input file.

Part of PrimeIntellect/Terminal-Lego-15k.