regex remove everything but brackets parens and curly braces code example
Example: regex remove brackets and contents
/\[.*?\] /g
[A] this is a song [D] [Am] i am [Adim] Am [f] // input
this is a song i am Am // output
/\[.*?\] /g
[A] this is a song [D] [Am] i am [Adim] Am [f] // input
this is a song i am Am // output