how locale aware is preg_replace in php?
<p>If I do, preg_replace('/[^a-zA-Z0-9\s-_]/','',$val) in a multi-lingual application, will it handle things like accented characters or russian characters? If not, how can I filter user input to only allow the above characters but with locale awareness?</p>

<p>thanks!</p>

<p>codecowboy.</p>
