I should extract multilingual content from a text structures in this way:
some text [it] italian text [/it] [en] english text [/en] bla bla bla
other text [it] other italian [/it] [en] other english text [/en] bla bla bla
I would extract all the text not enclose beetwen multilingual square brackets and the text enclosed beetwen current language square brackets.
For example if the current language is "en" I would extract the following text:
some text english text bla bla bla
other text other english text bla bla bla
How could I use regular expressions to correctly extract the text?
like