Hi have this URL string which I need to extract possibly using regex but need to do it from the right side to left. For example:
http://localhost/wpmu/testsite/files/2012/06/testimage.jpg
And I need to extract this part:
2012/06/testimage.jpg
How can this be done? Thanks in advance…
UPDATE: since only the “files” in the URL is a constant, I would like to extract everything after “files”.
1 Answer