<?php $string = '{width:100, max-heigth:300, min-height:200}'; $pattern = '/^{.*}$/'; var_dump(preg_match($pattern, $string));
You have javascript disabled. You will not be able to edit any code.