I would like to extract parts of strings. The string is:

```
> (x <- 'ab/cd efgh "xyz xyz"')
> [1] "ab/cd efgh \"xyz xyz\""

```

Now, I would like first to extract the first part: 

```
> # get "ab/cd efgh"
> sub(" \"[/A-Za-z ]+\"","",x)
[1] "ab/cd efgh"

```

But I don't succeed in extracting the second part:

```
> # get "xyz xyz"
> sub("(\"[A-Za-z ]+\")$","\\1",x, perl=TRUE)
[1] "ab/cd efgh \"xyz xyz\""

```

What is wrong with this code?  

Thanks for help.