The easy answer is to have a look at the code:

[...]
$whiteSpace = $this->allowWhiteSpace ? '\s' : '';
if (!self::$_unicodeEnabled) {
     // POSIX named classes are not supported, use alternative a-zA-Z0-9 match
    $pattern = '/[^a-zA-Z0-9' . $whiteSpace . ']/';
[...]

So yes, 'mypass_&231' would be filtered into 'mypass231'

-- 
Vianney Devreese - Lepidosteus
http://lepidosteus.com

Reply via email to