A little regex help
Fragment of a discussion from User talk:Rua
You could just capture it and then ignore the capture?
Annoyingly according to the MW docs, Lua patterns do not allow greedy quantification over capture groups.
Then I guess you'll have to make do with several matches, with increasing numbers of preceding consonants.