I have a string contains multi language text as follow
{|en|}Audio Albums{|/en|}{|ar|}الألبومات الصوتية{|/ar|}
I need a function to get the text of specific language
getText("en") should returns Audio Albums
I think I have to use regular expression.