HF RL Explorer

Swift Regex Match Extraction

Swift Regex Match Extraction: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a Swift function that extracts all substrings from a given text that match a specified regular expression pattern. The function should return an array of matched strings.

The task

You need to implement a Swift function that extracts all substrings from a given text that match a specified regular expression pattern. The function should return an array of matched strings.

Part of PrimeIntellect/Terminal-Lego-15k.