Created
September 23, 2012 01:42
-
-
Save datacodesolutions/3768487 to your computer and use it in GitHub Desktop.
Regular Expression: Last Segment URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preg_match('/[^\/]+$/', $this->_image_url, $matches); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: http://stackoverflow.com/questions/1150559/regular-expression-to-collect-everything-after-the-last