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?:
if(preg_match('/[\\/^$.|?*+():<>]/', $username)){}
Taken directly from the PHP Docs :
Often used delimiters are forward slashes (/), hash signs (#) and tildes (~).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With