i need a regex pattern to validate if a string is a valid facebook username?
According to this site...
preg_match('/^[a-z\d.]{5,}$/i', $username);
                        var pattern=/[~!@#$%^&<>]/;
var name=$username;
var count=0;
if(pattern.test(name) )
{
   alert('only characters');
}
if(name.match(/[0-9]/))
{
    count++;
   if(count>5)
   alert('not exceds 5 digits');
}
                        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