As the title says I need to return a particular part of string that falls between two substrings.
Example:
$string = numbergrid_21372566/_assets/audio/
Now every time, I need to return the part of string that falls between the last two slashes (/) I.E audio in this case.
How can I achieve that? Thanks for reading