An alternative (from hans-peter sorge from this list, april 13, 2016). Careful though, this does have some edge conditions which will bite: ⍝replace <old> with <new> (<o> is 2 elements) in string <s> ⍝.k text-editing ⍝.n hans-peter sorge ⍝.t 2016.4.13.0.0.0 ⍝.v 1.0 / 13apr16 r←((0=⍴z)/a),z←∊((e×⍴v)↑¨⊂v),¨((⍴u)×e←+/¨(1+p)⊂p)↓¨(1++\p←u⍷a)⊂a←s⊣(u v)←o ∇
- [Bug-apl] Not a bug, need help coding search&replace... Fred Weigel
- Re: [Bug-apl] Not a bug, need help coding search&... Christian Robert
- [Bug-apl] Not a bug, need help coding search&re... Fred Weigel