<?php echo preg_replace('/#-plugin-(\w+)(-(.+))*-#/i', 'TEST $3', 'Text #-plugin-Muj-id=6;key=45-#');
You have javascript disabled. You will not be able to edit any code.