In today's article I will introduce you to one of Regular Expressions (RegEx for short) to get Facebook Page ID-based URL is available. Simply put, if I have the link as https://www.facebook.com/tanvietblog or https://www.facebook.com/profile.php?id=123456789 the values I want to get the tanvietblog and 123456789 woodberry kitchen . But first I will explain briefly about Regular Expressions. 1, What are Regular Expressions?
Regular Expressions woodberry kitchen are translated as regular expression, which is one form of small but useful technique in one area wide class of programs, although many developers are not known. It can be understood as one small language used for the string to find in large chain expression. It is not a new technique, derived from the UNIX environment, is used to PERL.
Regular Expressions (English: regular expression, abbreviated as regexp, regex or regxp) is a sequence depicting a different set of strings, according to certain syntax rules. Regular expressions are often used in the text editor and search utilities and word processing on the prescribed form. Many programming languages also support regular expressions in the processing chain, such as Perl has a powerful machine to handle regular expressions are built directly in their syntax woodberry kitchen
In addition, you can refer to a number of articles on the following Regular Expressions: woodberry kitchen About regex - Regular expression Introduction to Regular Expressions In PHP Regular Expressions - From hell to heaven! 2, Regular Expressions for Facebook Page ID in the URL
# Https://www.facebook.com/my_page_id woodberry kitchen => my_page_id # https://www.facebook.com/my_page_id?ref=hl => my_page_id # http://www.facebook.com/my_page_id => my_page_id # http://www.facebook.com/#!/my_page_id => my_page_id # http://www.facebook.com/pages/Paris-France/Vanity-Url/123456?v=app_555 => 123456 # http: / /www.facebook.com/pages/Vanity-Url/45678 => 45678 # http://www.facebook.com/#!/page_with_1_number => page_with_1_number # http://www.facebook.com/bounce_page#!/ pages / Vanity-Url / 45678 => 45678 # http://www.facebook.com/bounce_page#!/my_page_id?v=app_166292090072334 => my_page_id # http://www.facebook.com/my.page.is. great => my.page.is.great
$ Facebook_profile = 'https://www.facebook.com/tanvietblog'; preg_match('/(?:https?:\/\/)?(?:www\.)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-\.]*)/', $ Facebook_profile, $ matches); if (! empty ($ matches)) {echo $ matches [1]; }?> [/ Ccew_php]
While experimenting with many different circumstances, I discovered some cases where the above paragraph Regex untreated. For example, when I use the following link https://www.facebook.com/profile.php?id=123456789 result is profile.php? Id = 100004053193401, an undesirable outcome.
[Ccew_php] [/ Ccew_php]
I set up this website to satisfy blogging hobby and also learn and share what I know or read somewhere on the web and Programming Mobile Programming. I hope these articles will help you. Body!
September 1, 2013 at 10:41 am
Board oi you have been recently hacked fece original co recoup ko.no Deleted email be.doi main board on the email luong.huhu.minh wife and second child chan gio do to get it back. account security implementation do not confirm the identity het.keo tinh.minh logged onto dt supply luong.huhu.co not do anything clever ways in which ko.cam woodberry kitchen on board nhiu
"You have forgotten your password click on the line, then it will require inspection of your 5 friends in your friends list. You answered correctly it will send the password to your facebook? You try to do offline! "
=> In addition, you can use the + side email to retrieve your password, but behind the hacker has changed the email and delete friends woodberry kitchen list. You have the right players and there. Sorry I did not help you now ... :(
Comment
You may use HTML tags and attributes These: <a href="" title=""> <abbr title = ""> <acronym title = ""> <b> <blockquote cite = ""> <cite> <code class = "" title = "" data-url = ""> <del woodberry kitchen datetime = ""> <em> <i> <q cite = ""> <strike> <strong> <pre class = "" title = "" data-url = ""> <span class = "" title = "" data-url = "">
[Python] Displays a list of the days of the week, months
Mar 12, 2012
Dear friends! You know how to find an email from ... add facebook comment box Adding days to add some non stan
No comments:
Post a Comment