I\'m working with a Google API that returns IDs in the below format, which I\'ve saved as a string. How can I write a Regular Expression in javascript to trim the string to
Why not use replace?
"http://google.com/aaa".replace(/(.*\/)*/,"")
yields "aaa"