I need to extract the value from the current url. 
For example if my url is 

```
http://stackoverflow.com/questions/ask

```

I need the result stored in an array splitted with respect to "/".

my array should contain [questions,ask]