<?php $string = "Hello there ##NAME##, you have ##ORDERSNUM## orders pending"; preg_match_all('/##([^#]+)##/', $string, $matches); print_r($matches[1][0]);
You have javascript disabled. You will not be able to edit any code.