$text = "blsfa sf afsa{%lang['main']['number']}sfas fsaf sfas sfassa{%lang['bla']['test']} fasfsaf sf ssfsafa";$ptrn = "/{%lang(.*?)}/ismx";preg_match_all($ptrn, $text, $arr);
{%lang['main']['number']}