<?php $str = 'path/to/folder/@here'; echo preg_replace('#/@[^/@]*(*SKIP)(*F)|[^/]+#', 'a:$0', $str);
You have javascript disabled. You will not be able to edit any code.