HF RL Explorer

Task: Implement Dynamic Regex Pattern Matching in JavaScript

Task: Implement Dynamic Regex Pattern Matching in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). In JavaScript, when you need to use a variable as part of a regex pattern, you cannot use the regex literal syntax ( /pattern/flags ). Instead, you must use the RegExp constructor.

Part of PrimeIntellect/Terminal-Lego-15k.