I'm trying to use sed to remove links like and leave just the title:
## [Some title](#some-title)
This is my command:
sed -i 's/^\(\#*\) *\[\([^\]]*\)\].*/\1 \2/'
I expect to have just the text without the link:
## Some title
But it doesn't work. What I do wrong?
I'm using Linux with GNU sed.