<?php preg_match_all( '/\[.*?\]|\{.*?\}/', 'This is a {demo} phrase made for {test}', $matches); print_r($matches); // 1234
You have javascript disabled. You will not be able to edit any code.