Use regular expression result array when possible.