regex delete text between brackets 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