The regular expression
([^\/]+).
will solve this problem for you.
'[^/]' means capture all characters except for / (the backslash is to escape the / character, in some cases you might not need to escape it)
'+' means one or more of the previous (previous = [^/])
'.' means match any character except newline
the parentheses around everything but the '.' will make sure that you capture everything before the slash but not the character that follows it (in your case the trailing quote).
If you are having trouble with regular expressions, https://regex101.com/ is a very good website to help you with it. The website also provides real time information on what you are actually doing/trying with your regular expression.