facebook username validation regex pattern

i need a regex pattern to validate if a string is a valid facebook username?

Answers


According to this site...

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

Need Your Help

Styling icon of MenuItem on Android

android design actionbarsherlock android-actionbar menuitem

I'd like to stylize the three dots of the button of menuitem (like on Nexus Phone)

Get number of elements in an Enum type and iterate over them

c# reflection enums

Is there a way to iterate over elements in an enum type? Something like:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.