I am trying to figure out how to select with JS everything before Picture_1.png
in this url:
"http://s3.amazonaws.com/hq-photo/development/system/photos/215/cropped_thumb/Picture_1.png"
so that the end result is this :
"http://s3.amazonaws.com/hq-photo/development/system/photos/215/cropped_thumb"