Regex to get everything but last word in sentence of words seperated by “/“?
regex
Solution
use this regular expression `^/.+/`
Problem
What would be the appropriate regex to get everything of a sentence except the final word: For example: ``` /hello/world -> /hello/ /one/two/three -> /one/two/ /foo/bar/ice/tea -> /foo/bar/ice/ ```