<?php $text = ['My Name ## is "#P_NAM3#" and \r\n', 'I am \'#P_AG2#\' years old `#abc#`']; //$r = '#(?P<name>.*?)#'; //$r = '#(\w*)#'; echo preg_replace_callback('/#([^#]*)#/m', 'trad', $text);
You have javascript disabled. You will not be able to edit any code.