php - facebook username validation regex pattern -


i need regex pattern validate if string valid facebook username?

according this site...

preg_match('/^[a-z\d.]{5,}$/i', $username); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -