Hi, I am trying to use preg_match_all () to extract the number in bold in an image URL. . _8277870_t.jpg
Can someone help me with the regular expression as stumped?
I have used it far:
preg_match_all ("(http://profile.ak.fbcdn.net/hprofile-ak-snc4/.*_t. Jpg) si ", $ - is-> html, $ matching_data); Return $ match_data [0]; } I'm just giving an array of full links.
Hope someone can help, thank you!
This will give you all the events:
$ matches = preg_match_all ('! / Hprofile-ak-snc4 / [0- 9] + _ ([0- 9] +) [^ /] + ?. .Jpg! I', $ txt); Print_r ($ matches);
Comments
Post a Comment