Pcre replace callback

来自MudWiki

名称

   pcre_replace_callback - string replace uses a callback to get the replace string

语法

   string pcre_replace_callback(string, string, string | function, ...);

描述

   returns a string where all captured groups have been replaced by the return value of function pointe fun or function fun in object ob.(called with the matched string and match number, starting with 0)