<?php $str = "({max_w} * {max_h} * {key|value}) / {key_1|value}"; $pattern = "/{\K[^{}|]*\|[^{}|]*(?=})/"; preg_match_all($pattern, $str, $matches); print_r($matches[0]);
You have javascript disabled. You will not be able to edit any code.