Check matches array when not capturing sub patterns