<?php
$re = '~{{.*?}}~s';
$str = "This is {{some. test}} to see if I can remove spaces";
}, $str);
PD9waHAKCiRyZSA9ICd+e3suKj99fX5zJzsgCiRzdHIgPSAiVGhpcyBpcyB7e3NvbWUuICAgICB0ZXN0fX0gdG8gc2VlICAgICBpZiBJIGNhbiByZW1vdmUgc3BhY2VzIjsgCmVjaG8gcHJlZ19yZXBsYWNlX2NhbGxiYWNrKCRyZSwgZnVuY3Rpb24oJG0pIHsKCXJldHVybiBzdHJfcmVwbGFjZSgiICIsICIiLCAkbVswXSk7Cn0sICRzdHIpOw==