I am having trouble finding any examples to help me strip everything up to a certain character (the hypen) in a url.
Hypothetical example below, as I only know how to accomplish this using a literal only for one url at a time but I need this for changing urls:
And I am hoping to be left with the series of numbers on the end. Any help is greatly appreciated.
var temp = new String('http://www.site.com/abc_123_abc_-1379820930');
temp = temp.replace("http://www.site.com/abc_123_abc_-", '');