A little regex help

Fragment of a discussion from User talk:Rua

Annoyingly according to the MW docs, Lua patterns do not allow greedy quantification over capture groups.

JohnC516:28, 23 November 2015

Then I guess you'll have to make do with several matches, with increasing numbers of preceding consonants.

CodeCat16:55, 23 November 2015

I think so too. I believe the maximum onset sze in Sanskrit is 3. It is also an interesting question how many words possess this edge case. I'll look into it. Thanks for the advice; though it's odd there isn't an easy way to do this.

JohnC517:33, 23 November 2015