Task: Return First Match of Ruby Regex
Task: Return First Match of Ruby Regex: a task in Terminal-Lego-15k (Harbor dataset). In Ruby, you need to write a script that efficiently extracts the first match of a regular expression from a given string, short-circuiting without processing the entire string unnecessarily.
Part of PrimeIntellect/Terminal-Lego-15k.