Hi Chris, For the longest time. Let me repeat that, for the longest time ... I've always thought of rplc as handling only 1 change per run. I would normally make an explicity for_xyz. loop to handle multiple replacement.
Something new every day. :) Thanks! r/Alex -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Chris Burke Sent: Thursday, May 06, 2010 10:26 AM To: Programming forum Subject: Re: [Jprogramming] Poor mans way of creating XML document files in J I'm not sure exactly what you are doing, but just want to point out that rplc will do several replaces at once: 'abcdef' rplc 'a';'XY';'de';'DE' XYbcDEf On Thursday, May 06, 2010 07:24 AM, Alex Rufon wrote: > Hi Devon, > > I've been having some trouble using rplc without an explicit loop and your > code here is juicy. :) > >> body=. ;(<xmlUser) rplc&.> <"1 ,"2 dummies,."(_ 1)rawdata > > Thanks! > > r/Alex ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
