JC Coez <[EMAIL PROTECTED]> wrote:
I want to eliminate from a string all substrings delimited by starting and
(different) ending delimiters. Any help is appreciated.
Depending on what your exact needs are you may need more than
On 7/9/06, R&S HUI <[EMAIL PROTECTED]> wrote:
delete=: 4 : 0
's e'=. y
b=. s E. x
k=. b i. 1
bx=. b <;.1 x
c=. e&(+./@E.)&> bx
(k{.x) , ; bx (I.c)}~ ((#e)&+@(e&(E.i.1:)) }. ])&.> c#bx
)
Eg
'asd(fg(hj)kl)' delete '(';')'
asd(fgkl)
~greg
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm