What function is best suited for extracting data from a formatted string into an array?