Twig preg_replace filter for Craft CMS