I want to extract the url of a markdown link using vimscript with regexes.
Ideally something in these lines:
fun! GetLinkUri(str)
return match(a:str, '[.*]\((.*)\)', \1)
endfunc
So given a string like: The search engine [Google](https://google.com) blabla
It would return https://google.com
.
The way the function is described is not the proper use of match. There's any way of doing it with match? There are any other function that does this job?