var asdf = "a > b > c"
var newstring = asdf.replace(/\/[^\/]*$/, '')
I have the following string: pass[2011-08-21][total_passes]
How would I extract the items between the square brackets into an array? I tried
but this only returns .
Not sure how to do this.. Thanks ...
Still completely stuck with regex's and square brackets. Hopefully someone can help me out.
Say I have a string like this:
How would I grab the third fragment out of it?
I tried the ...