Forum Discussion

cike's avatar
cike
Champion
8 years ago

Setup content filter for arabic language

Hi guys,

 

I'm trying to add a content filter for login names using regex functions (/t5/Community-Moderation/Examples-of-regular-expressions-for-content-filters/ta-p/39182).

 

The aim is to prevent users from typing their user name in arabic letters. The regex I'm using uses different ranges of unicode sequences to do this. Unfortunately, this approach does not work:

 

r:[\x00-\x2f,\x3a-\x40,\x5b-\x60,\x7b-\xc3,\xc5-\xd5,\xd7-\xdb,\xdd-\xde,\xe0-\xe3,\xe5-\xf5,\xf7-\xfb,\xfd-\xff]

If I write the regex using arabic letters instead, the filter works fine, but I'm not sure that this regex matches all existing arabic letters:

 

r:[غظضذخثتشرقصفعسنملكيطحزوهدجبا]

Does someone handled some similiar issues and got some best practices or advices how such content filters should be configured?

 

Thanks and kind regards,

Christian

No RepliesBe the first to reply