i need a regex pattern to validate if a string is a valid facebook username?
Advertisement
Answer
According to this site…
preg_match('/^[a-zd.]{5,}$/i', $username);
i need a regex pattern to validate if a string is a valid facebook username?
According to this site…
preg_match('/^[a-zd.]{5,}$/i', $username);