Suppose I have an image URL structured like this:
blabla.com/bla/twofive.hash.png
This type of URL can be converted into a JavaScript string.
I am interested in learning how to create an array that breaks down the URL based on special characters, such as "." and "/", resulting in something like this:
var arr = ['blabla', 'com', 'bla', 'twofive', 'hash', 'png'];
By doing this, I can easily access any element of the array using a simple arr[number];