Reputation: 4524
This is how my status url look like
http://twitter.com/username/statuses/303095169115357184
Now i would like to get the tweet id 303095169115357184 using preg_replace.
303095169115357184
Can someone help me with regex?
Upvotes: 0
Views: 670
Reputation: 12872
No need to use preg_replace().
preg_replace()
$id = basename($url)
Upvotes: 6