Fix array key access, use of regexes