RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Facebook Pages URL
Expression
http[s]?://(www.facebook|[a-zA-Z]{2}-[a-zA-Z]{2}.facebook|facebook)\.com/(pages/[a-zA-Z0-9\.-]+/[0-9]+|[a-zA-Z0-9\.-]+)[/]?$
Description
Validating facebook pages url with rules such as with "www" or without "www", include localization domain such as "en-gb"
Matches
https://www.facebook.com/PETRONASMOTORSPORTS http://www.facebook.com/PETRONASMOTORSPORTS https://facebook.com/PETRONASMOTORSPORTS http://facebook.com/PETRONASMOTORSPORTS https://www.facebook.com/pages/MotherKidzcommy/233933596702267 http://www.facebook.com/pages/MotherKidzcommy/233933596702267 http://www.facebook.com/233933596702267 https://www.facebook.com/233933596702267
Non-Matches
https://facebook.com/pages/MotherKidzcommy/ http://facebook.com/pages/MotherKidzcommy/
Author Rating: Not yet rated. Mior Mohd Arif Mior Zamri
Source Initial pattern from Matthew Harris
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials