So the following regex (written in python3) is just one part that will be added to a larger regex to split a url into schema, domain and path. This part is extracting the path.

```
link = "http://google.com/whatever/who/jx.html"
components = re.split(r'(?<![:/])(/.*$)', link)

```

Returns the following:

`['http://google.com', '/whatever/who/jx.html', '']`

Why is the regex returning an extra element at the end of the list?