HF RL Explorer

Task: Regex Last Occurrence - Extract Last Path Component with Backslash

Task: Regex Last Occurrence - Extract Last Path Component with Backslash: a task in Terminal-Lego-15k (Harbor dataset). You need to write a regex pattern that extracts the last backslash and everything after it from Windows-style file paths. Given a set of input file paths, apply your regex to…

The task

You need to write a regex pattern that extracts the **last backslash and everything after it** from Windows-style file paths. Given a set of input file paths, apply your regex to extract the last path component (including the leading backslash `\`) from each line.

Part of PrimeIntellect/Terminal-Lego-15k.