Quote:
Originally Posted by bepe
Yes, I've read that page, but not all the page title restrictions are needed for the user.
I've come up with this now:
PHP Code:
/^[^_ #:~\/[\]]{1}[^_#:~\/[\]]*$/
[^_ #:~\/[\]]{1} -> for avoiding space as first char
_ -> would be converted to a space in the username
# -> Wiki does not allow it
: -> someone might use a username like 'Talk:ToMe' ... that would be a Wiki Namespace
~ -> Wiki does not allow this sequence: '~~~'
/ -> Name is used in the URL, so we cannot have users with something like "../" or "./" or "/../" in the name... so disallow the '/' or the '.'
[] -> Wiki does not allow it
|
Just realized that with this string as the User Registration Regex nobody can create an account. Went back to the plain alpha numeric one for the moment, but it would be nice to get the precise one working at some point.