If I use preg_split() function for example:
$string = 'products{id,name},articles{title,text}';
$arr = preg_split('/\}\,(\w)/', $string);
print_r($arr);
I receive the following result:
Array ( [0] => products{id,name [1] => rticles{title,text} )
How to receive full word articles i.e. to extract the value of the regex pattern ?
ps. If it's possible at all