Do I need to check the facebook page url which should not consider HTTP / https or www, or not?
I mean the following should be accepted or valid :
www.facebook.com/ABCDE facebook.com/ABCDE http://www.facebook.com/ABCDE https://www.facebook.com/ABCDE
And below should not be accepted or invalidated :
http:
For the above requirement, I made the following regular expression, but it does not check the username or page name, which is the only problem. Rest works fine:
/^(https?:\/\/)?((w{3}\.)?)facebook.com\/(([az\d.]{5,})?)$/
I am very new to regex, so I don't have much idea about this.
Any help would be noticeable.
Thanks in advance.
Aryan source share