I am trying to convert parts of a chordpro text file.
Basically it has music chords denoted within [], inserted into the lyrics text.
It also has special lines, denoted with {} which I would like to manipulate..
I am aware of the chordtransposer extension but its not quite doing everything id hope.
But first the [] problem
Find attached a chordpro file for reference. Simnply open with openoffice(its just a basic text file)
In some cases I want to remove the [chords] completely.
So I need an expression to find all characters within []
Code: Select all
[G]City girls just [Gmaj7]seem
Code: Select all
City girls just seem
but \[.*\] does something strange as it selects all text between the first [ and the last ] on the line.
[G]City girls just [Gmaj7]seem.
instead of
[G]City girls just [Gmaj7]seem
I cant quite fathom the expressions and how they work even after reading the help.
\[.....\] will find the [Gmaj7] but not the simple [G]
Would appreciate some help as I have tried various different concoctions but alas im obviously playing in the dark