I have formatted lines of the text, i.e.
[[item1 *,* {_item2*} *;{item3*}* ;{item4*}*]]
where * means any text between the words and brackets. Is it possible to collect text from * to variables?
item1, after1, before2, item2, after2, item3, after3, item4, after4, afterall = re. ???