I have a line of text that looks like this
foo bar http://www.example.com -> baz
I want yank the url part using ex. Anyone have any ideas on how to do this?
To clarify. I want to do something like this :y/http:.*\.com/
from the command line. But that doesn't work.
While on the beginning of a line,
will yank the URL part while not changing the cursor position.
If you want to do it as a command
does the same thing.