I've been trying to hide the URL component of the markdown links in my buffer.
I could select the markdown links using
"\\(\\[.+\\]\\)\\((.+)\\)"
However, I just want to capture the second half (the URL component) of the links and fade them away in the buffer.
I have tried every possible documentation available but with no avail. Please help.
?
to your reqular expressions to avoid greedy matching, i.e., "\(\[.+?\]\)\((.+?)\)".(match-beginning 1)
and(match-end 1)
.\(\[.+?\]\)\((.+?)\)(match-end 1)