Randy A MacDonald wrote: > This should work: (with textrepl suitably defined) > '/</(/>/)' textrepl 0 : 0 > ... Here's a suitable definition for textrepl: textrepl=:4 :0 require'strings' >stringreplace&.>/(_2<\<;._1 x),<y ) Or, the tacit equivalent: require 'strings' textrepl=: [: > (_2<\[:<;._1[) stringreplace&.>/@, <@] -- Raul
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
