<?php preg_match('/([a-z]+)(<((?R)(,(?R))*)>)?/', 'a<b<c<d>>,g>', $matches, PREG_OFFSET_CAPTURE, 2); print_r($matches);
You have javascript disabled. You will not be able to edit any code.