Having trouble getting the last part of a URL using regex with all possible cases.
Currently my Regex: ([\w ]+)(?=[^/]*$)
Test url: http://www.token.com/post/another
Result: another
The problem is when the url is: http://www.token.com/post/another**/**
It won’t pull anything in this case b/c of the backslash “/”
Is there a way get the result “another” once again even when there’s a backslash?