im not sure why this wont work… works perfectly in multiple regex checkers and testers. but when it comes to running it in PHP i get this error:
Warning: `preg_match()` [function.preg-match]:
Compilation failed: nothing to repeat at offset 6 in /home/splose/public_html/index/index.php on line 49
im running this:
if(preg_match('[\\/^$.|?*+():<>]', $username)){}
Perhaps you can try to delimit your pattern?:
Taken directly from the PHP Docs :