Possible Duplicate:
Regex to remove last / if it exists as the last character in the string
Javascript: How to remove characters from end of string?
In Javascript how can I check if a string contains \ (backslash) at the end of it, and if so remove it? Looking for a regex solution.
Appreciate your time and help.