You still have not said what regex or language you are using so I'm assuming that it is a fairly basic one. The pattern:
(?:oas.swap_values)
\( \s*
"result_(\d{1,3})",
(
\s+
(
'FIRST',\s+"([^"]*)"
|
'LAST',\s+"([^"]*)"
|
'[^']*',\s+"[^"]*"
)
,?
)*
\s* \)
(I've used the 'ignore case' and 'ignore whitespace' options). The pattern is split over several lines so that you can see the various parts of it, but you will probably ened to put it onto a single line and remove all of the spaces.
The text in match group #1 will be the number after 'result_', match group #4 will contain whatever comes after 'FIRST' (with the double-quotes removed) and match group #5 will contain whatever comes after 'LAST' (same deal). I've not assumed that the order of the fields is the same which is why the whole match actually extends to the closing parenthesis. Also, if there are other field values that you want to extract, then you can extend the overall structure of the pattern.
If there are multiple entires in the file, then you can expect a match for each entry.
Susan