Markup('birthdax','fulltext','/\\(:birthdax (.*?):\\)/e',"birthday('$1')"); Markup('hasher','fulltext','/\\(:hasher (.*):\\)/e',"inkky('$1')"); in the latter you are missing the ? in the regex, i.e. should be '/\\(:hasher (.*?):\\)/e' would that work? Best regards, Hans www.softflow.co.uk