XF 2.2 Custom thread fields--regular expression

Wildcat Media

Well-known member
So I have a PCRE regular expression working perfectly at regex101.com:

/^[ 0-9$£¥€.,]+$/

And the same for its hex equivalent:

/^[0-9\x{20}\x{2c}\x{2e}\x{24}\x{a3}\x{a5}\x{20ac}]+$/

These, or any variation I try (such as, without the $ and ^, or with a modifier), are throwing the error:

1608482734015.webp

To test, I went to the "Username match regular expression:" over in Registration settings, and the regex is accepted there without error.

Something's not right here. Any idea what?
 
OK, that worked, thanks!

But it's inconsistent with behavior in the other regex field Username match regular expression:. Not sure if I should report it as a bug...it's so minor.
 
Back
Top Bottom