Task: Replace Non-Alphanumeric Characters with Single Space Using One Regex
Task: Replace Non-Alphanumeric Characters with Single Space Using One Regex: a task in Terminal-Lego-15k (Harbor dataset). Write a JavaScript solution that replaces all non-alphanumeric characters, newlines, and multiple whitespace instances with a single space using a single regex replacement…
The task
Write a JavaScript solution that replaces all non-alphanumeric characters, newlines, and multiple whitespace instances with a single space using **a single regex replacement operation**.
Part of PrimeIntellect/Terminal-Lego-15k.