HF RL Explorer

Task: Escaping Question Marks in JavaScript Regex

Task: Escaping Question Marks in JavaScript Regex: a task in Terminal-Lego-15k (Harbor dataset). In JavaScript, the ? character is a special regex metacharacter (it makes the preceding token optional). When you need to match a literal ? in a string using a RegExp object, you must properly escape it.

The task

In JavaScript, the `?` character is a special regex metacharacter (it makes the preceding token optional). When you need to match a literal `?` in a string using a `RegExp` object, you must properly escape it.

Part of PrimeIntellect/Terminal-Lego-15k.