How about these: local m1, m2: m1 = regexp1.match(line) m2 = regexp2.match(line): if m1 and m2: ...
m1 = regex1.match(line)m2 = regex2.match(line) if m1 and m2:
...