I have this string:
http://scontent-b.xx.fbcdn.net/hphotos-prn2/t1/c22.0.100.100/p100x100/1489204_568091786618712_2075358603_n.jpg
I want to remove following part of the string:
c22.0.100.100/p100x100/
... But following part of the string is dynamic (changes):
c22.0.100.100
I'm thinking that it might be possible to use the PHP preg_ function in combination with a regular expression i some way? Example: Remove backwards from /p100x100/ to next / ??
Does anyone have a solution for this problem?
c22.0.100.100can changeexplode()should suffice) and come back with code you've written