Topic: How can I disallow certain characters from being registered?

(preg_match('#\[b\]|\[/b\]|\[u\]|\[/u\]|\[i\]|\[/i\]|\[color|\[/color\]|\[quote\]|\[quote=|\[/quote\]|\[code\]|\[/code\]|\[img\]|\[/img\]|\[url|\[/url\]|\[email|\[/email\]#i', $username))

How do I edit that line to include both "." and "%"

I don't want to allow dots and percentage signs to be allowed in usernames.

thanks

2 (edited by anima 2006-06-02 07:29)

Re: How can I disallow certain characters from being registered?

I don't think it's the good regexp, but what you'd have to add is |\%|\.|, I reckon. (I'm not good at regular expressions wink)