Page 1 of 1

How to filter Mathematical Alphanumeric Unicode characters in Word Filter?

Posted: 05 Aug 2025, 16:41
by ciaoamigos
Hello everyone,

I'm looking for advice on how to configure the SmartFoxServer Word Filter to block messages containing mathematical Unicode characters—specifically the Mathematical Alphanumeric Symbols range (U+1D400–U+1D7FF).

I tried adding a regex like:

Code: Select all

(?:\uD835[\uDC00-\uDFFF])

But it doesn’t seem to work, and even adding the fancy characters directly to the filter is not effective in all cases.

Question:
Is there a way (with regex or otherwise) to configure the Word Filter to block any message containing Mathematical Alphanumeric Symbols (U+1D400–U+1D7FF), or is it necessary to manually add every possible variant for each word?

Any tips or best practices on how to handle Unicode “fancy” characters in the Word Filter would be greatly appreciated!

Re: How to filter Mathematical Alphanumeric Unicode characters in Word Filter?

Posted: 06 Aug 2025, 10:05
by Lapo
I am no regex expert but I would recommend googling how to do that in Java.

You can also use this site:
https://regex101.com/
to test the regexp, it supports all kinds of languages.

Cheers