I'm trying to write a regex to match all characters up to a '/'
My current regex only matches the first character of the string

```
var regex = /[^\/]/
regex.exec("something/15")

```

This will give me 's'. I have also tried

```
var regex = /.*[^\/]/

```

but it returns the whole string undelimited by '/'. I have taken a look at this other SO post as well.

[Javascript regular expression: match anything up until something (if there it exists)](https://stackoverflow.com/questions/8584697/javascript-regular-expression-match-anything-up-until-something-if-there-it-ex)