in reply to Re^2: Deleting records from an array
in thread Deleting records from an array

...another optimization would be to use index instead of regex, if your keys are simple literals and not actually regular expressions...