self::insert(): Replace preg_replace_callback()