HF RL Explorer

Task: Extract Numbers from Strings in JavaScript

Task: Extract Numbers from Strings in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). You are tasked with writing a JavaScript utility function that extracts numeric values from strings. This is a common requirement when working with element IDs, CSS selectors, or any string that…

The task

You are tasked with writing a JavaScript utility function that extracts numeric values from strings. This is a common requirement when working with element IDs, CSS selectors, or any string that contains embedded numbers.

Part of PrimeIntellect/Terminal-Lego-15k.