--- In [email protected], "entropyreduction" <alancampbelllists+ya...@...> wrote: > > Also forgot to mention: > > -- "mark" should also work for pcreReplaceCallback (not tested), and > regex_makr should be correct each time callback function is called.
This does not seem to be working. I see no evidence that the regex_mark string has been set. I tried with both global and local versions of it, for the local one I sent it to the callback routine as a userarg using the cbx format for regex.pcrereplacecallback script. Same pattern works and get a mark in regex.pcreMatch. Will post my most recent effort in your temp folder. Hopefully you can demonstrate how to access the regex_mark in the callback routine. > > -- I'm gonna have another bash at callouts. > > One thing I don;t understand: according to pcreapi doc: > > "a pcre_extra data block may contain callout_data" > > What's that about? Is that data which, if present is shipped onto the callout > function? Or?? Apparently yes, because in the pcreCallout doc it says in part: "The callout_data field contains a value that is passed to pcre_exec() or pcre_dfa_exec() specifically so that it can be passed back in callouts. It is passed in the pcre_callout field of the pcre_extra data structure. If no such data was passed, the value of callout_data in a pcre_callout block is NULL. There is a description of the pcre_extra structure in the pcreapi documentation." Regards, Sheri
