in reply to Re^2: regex matching using arrays
in thread regex matching using arrays

Of course, that loops over the array twice (map and join)