E Ethan New member Nov 22, 2010 #1 Look at this code: if (!preg_match("/^[a-zA-Z0-9.-_]+$/", $username)) I know that it checks to see if a username has those characters, but what is the "^" and "+$" part of the code for?
Look at this code: if (!preg_match("/^[a-zA-Z0-9.-_]+$/", $username)) I know that it checks to see if a username has those characters, but what is the "^" and "+$" part of the code for?