Forum Moderators: coopster
Got a question about preg_match_all. I'm using preg_match_all to fetch all the items in a text which are between curly brackets. There is one problem ... sometimes there are curly brackets between other curly brackets.
Here is an example:
preg_match_all works with this one {bla}{bla}{bla}
but not with this one {bla{bla}bla}
This is the code I use
preg_match_all('/\{(.+?)\}/ims',$article,$itemis);
Any suggestions ?