XF 2.3 Username validation regex which works fine. Same regex in custom field does not.

Mr Lucky

Well-known member
I have a username validation regex which works fine. Same regex in a custom field does not.

Does anyone know what I'm doing wrong?


Screenshot 2024-12-04 at 14.15.13.webp


Screenshot 2024-12-04 at 14.10.17.webp
 
Regex for user name validation must include the start and end / : /^[a-z0-9 _-]+$/i

Regex for custom profile and thread fields cannot use modifiers and must not include the start and end / : ^[a-zA-Z0-9 _-]+$
 
Back
Top Bottom