hashes not allowed in regexes
subscript of @var[0] is treated as regex

So @var[0] is two regex rules, an alternation of the array elements,
and another alternation [0].
array in regex does work now