I've got a string like
We would like to approve your call, however you have been denied because of reasons
I want to extract the last appearance of either "approve your call" or "have been denied" on the principal that that indicates whether it was approved or declined. I have to use the specific substrings since this is based on a form, not just "approve" and "decline".
My idea was to use a regexp_match to pull out all appearances then grabbing the last row, however there's no way to get the last row from the result of regexp_match.