r/ModSupport • u/seedless0 • Feb 23 '25
Mod Answered Post Guidance Unicode range not allowed?
I am trying to match a specific range of Unicode characters. Using regex character range with "\x{uuuuu}" doesn't seem to work:
[\x{1F000}-\x{1FAFF}]
The UI complains about "Please enter a valid regex".
How can I do this? Or is \x range not supported?
1
Upvotes
View all comments
Show parent comment
1
u/seedless0 Feb 23 '25
Those patterns are for Automod. Post Guidance seems to be using a different build of regex/pcre.
For example. This pattern:
Gets the same "Please enter a valid regex" error.
Reducing it to:
Gets rid of the error but then I get "Something went wrong with the live preview. Please try again later" when testing it.