Naja, den Inhalt der Gruppe muss man natürlich auch noch verarbeiten. Es gibt in der Tat \p{Extended_Pictographics}, aber das hat bei mir noch nie funktioniert.
Depending on the platform the bot is implemented with, there are emoji-regex packages that can at least match the characters, even if counting them might be difficult. I believe python 3.3+ has support for counting displayed characters, so title[:3]="ich"andlen(title[3:-3]) in (1, 2, 3) and title[-3:]="iel" should work for the length check.
ich(.+)ielichweißjanichtdiggaiel
Naja, den Inhalt der Gruppe muss man natürlich auch noch verarbeiten. Es gibt in der Tat
\p{Extended_Pictographics}, aber das hat bei mir noch nie funktioniert.Depending on the platform the bot is implemented with, there are emoji-regex packages that can at least match the characters, even if counting them might be difficult. I believe python 3.3+ has support for counting displayed characters, so
title[:3]="ich" and len(title[3:-3]) in (1, 2, 3) and title[-3:]="iel"should work for the length check.