Hi,

I'm really no good at regexp's so i hope that there is someone out there who can help me with the following problem:

I want to preg_match check a username variable so that it only allows the following:

A-Z a-z 0-9
@
Foreign character sets defined in UTF-8

So anything else needs to be denied, including {}[]*()&^%$#!|

I know how to check against the first 2, but the Foreign sets are a real pain in the butt that i can't seem to get around.
.