All characters after last slash JavaScript RegEx

Viewed 933

I have this as a string

http://steamcommunity.com/id/user/

And when I use this regex pattern : [^\/]+\/$ I get this result is

user/

I'm trying to negate the last / so i can get

user

How can I accomplish this?

2 Answers
Related