On Fri, 11 Dec 2020 09:54:43 +0200, Alexey Vatchenko wrote: > Sorry, still don’t understand how captures can help in this case. > In my understanding, it lacks "OR” to avoid duplicating identical > location blocks.
Sorry, I misremembered. You are correct that lua patterns don't support alternation. - todd