Thread:User talk:CodeCat/A little regex help

Hey Code, I'm working on a new Sanskrit declension module that can work across different scripts, and I was having some issues formulating a regex given Lua's weak pattern syntax. I want to check whether a lemma is monosyllabic ending in ī, but to check for an onset cluster in Devanagari encoding, you need the ् character between each consonant in the cluster, and I can't figure out how to check for: or approximately
 * zero or more (consonants each followed by ्)
 * followed by a consonant with ी

This would be easier if I could do use a Kleene star after a non-capturing group, but Lua doesn't allow that. Do you have any advice for this? Thanks.