Use the ta.mnpath() function to perform regular pattern matching over a sequence of rows from multiple inputs.