I need to extract the image-extension i.e. in this case the ".jpg"
Code: Select all
- the length or the URL is never the same
- the number of "." (dots) in the URL before the dot in ".jpg" can vary
- the extension could also be ".anythingelse"
Meaning I need to find a way to locate the last "." (the first backward) to extract everything after it
Any ideas how I could do that ?