<?php $pattern = "hello[/name/hello[/second]][/bye]"; if (preg_match_all('/\[((?:[^\[\]]*|(?R))*)\]/', $pattern, $matches)) { print_r($matches); }
You have javascript disabled. You will not be able to edit any code.