On Thu, Mar 17, 2022 at 2:30 PM Henry Rich <[email protected]> wrote: > That's what I wanted to know. I find it hard to come up with definitions > of 'match' and 'position' that justify this result.
I would use pairs: index (of start) and length. Since this topic might eventually be of general interest, I threw together an essay: https://code.jsoftware.com/wiki/Essays/String_Indexing Some of the mechanisms I used there could stand to be made more efficient. The search and replace mechanism I illustrated there is a relatively simple model and might or might not be thought of as representing an adequate replacement for stringreplace. Thanks, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
